A few simple questions. :)

Discussion in 'Programming General' started by WoW Sucks, Nov 1, 2007.

A few simple questions. :)
  1. Unread #101 - Dec 31, 2007 at 5:09 AM
  2. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    A few simple questions. :)

    I need it to add one to every button depending on what the caption number is, of the button i click and the button i click needs to become Zero.

    Heres the source, it might make it easier to understand.
     

    Attached Files:

  3. Unread #102 - Dec 31, 2007 at 6:17 AM
  4. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    A few simple questions. :)

    I R LEET. (Attached)

    Code:
    Option Explicit
    
    Private Sub Cap_Click(Index As Integer)
        Dim i As Long
        Dim tempIndex As Long
        Dim tempLoop As Long
        tempLoop = CLng(Val(Cap(Index).Caption))
        Cap(Index).Caption = "0"
        tempIndex = Index + 1
        Do Until tempLoop = 0
            If tempIndex >= 12 Then
                tempIndex = 0
            End If
            Cap(tempIndex).Caption = Val(Cap(tempIndex).Caption) + 1
            tempLoop = tempLoop - 1
            tempIndex = tempIndex + 1
        Loop
    End Sub
    
    Private Sub Form_Load()
        Dim i As Long
        For i = 0 To (Cap.Count - 1)
            Cap(i).Caption = (i + 1)
        Next i    
    End Sub
     

    Attached Files:

  5. Unread #103 - Dec 31, 2007 at 6:53 AM
  6. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    A few simple questions. :)

    Thanks alot covey, thats perfect :)
     
  7. Unread #104 - Jan 1, 2008 at 1:05 PM
  8. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    A few simple questions. :)

    New question added :)
     
  9. Unread #105 - Jan 1, 2008 at 1:12 PM
  10. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    A few simple questions. :)

    zomg no double posting!!!

    EDIT: The web browser component won't work for me any more... I think it has something to do with the fact that I finally installed IE7. Sorry, can't help you with this one right now.
     
  11. Unread #106 - Jan 1, 2008 at 5:22 PM
  12. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    A few simple questions. :)

    Code:
    Sub InetTest()
          If Inet1.StillExecuting = True Then Exit Sub
          If Len(Inet1.OpenURL("http://google.com")) <> 0 Then MsgBox "Site is up", vbOKOnly, "Simple test"
    End Sub
    Easiest way I can create, it can get more complex if you wish to check other things but I trust you only want something simple ;) and not professional.
     
  13. Unread #107 - Jan 2, 2008 at 7:03 AM
  14. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    A few simple questions. :)

    I always want simplicity, thanks :)

    EDIT: Im not sure that can work because you're seeing if the html is there or not, but when the site is down it still displays a page, with some code in it. And when the site doesnt exist, it takes me to my ISP's page.

    Ill try it anyway.

    Edit2: Nope, didn't work. =/
     
  15. Unread #108 - Jan 2, 2008 at 7:30 AM
  16. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    A few simple questions. :)

    post the website url you're trying to test if it exists or not, i need to do a bit of testing.
    also post your ISP url it re-directs you to.
     
  17. Unread #109 - Jan 2, 2008 at 9:26 AM
  18. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    A few simple questions. :)

    I think its working.

    Ill post back if i find that it isnt.

    EDIT: It works for if the website is up or down, but it says the website is up when no website exists due to the source code on my ISP site which i get redirected to.

    I need it to say 'invalid website' or something when there is no site. But i have a different isp to other people, so it wont redirect them to the same website in which i am.

    Any ideas?
     
  19. Unread #110 - Jan 25, 2008 at 12:07 PM
  20. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    A few simple questions. :)

    bump new question. :)
     
  21. Unread #111 - Jan 25, 2008 at 9:59 PM
  22. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    A few simple questions. :)

    Simple answer: You don't, Excel is for spreadsheets.

    Use Access for a database, or SQL and a web based language that can interface with it. (PHP, Ajax, ASP, CFM etc.)

    VB6 would just cause more errors then you could deal with at this point in time, but if you are 100% sure you need to use VB6 I guess I could whip something up (or out).
     
  23. Unread #112 - Jan 26, 2008 at 5:45 AM
  24. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    A few simple questions. :)

    Ummm i meant spreadsheet, not a database :S

    Sorry my mistake.
     
  25. Unread #113 - Apr 2, 2008 at 3:23 PM
  26. Trainer311
    Referrals:
    0

    Trainer311 Guest

    A few simple questions. :)

    thats alot of questoins lol..
     
< echo in C | Need tutor on Programming >

Users viewing this thread
1 guest


 
 
Adblock breaks this site