Results 1 to 4 of 4

Thread: [RESOLVED] Whts wrong in code ?????

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Location
    Latvia
    Posts
    4

    Resolved [RESOLVED] Whts wrong in code ?????

    i made my mu louncher but it allways says server offline !

    Code:
    Private Sub Command1_Click()
    Shell "Main.exe connect /usmj-mu.sytes.net /p44405"
    End Sub
    Private Sub Command2_Click()
    End
    End Sub
    Private Sub Form_Load()
    If Inet1.StillExecuting Then Exit Sub
        result = Inet1.OpenURL("http://127.0.0.1/wap/launcher.php")
    If result = "Online" Then
        SmJ_Mu.Enabled = True
        MsgBox ("Welcome to Smj Mu"), vbOKOnly, "System"
    Else
        MsgBox "Server offline", vbOKOnly, "System"
        End
    End If
    End Sub
    
    Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
        WebBrowser1.Navigate ("http://127.0.0.1/wap/")
    End Sub
    So plzz help whats wrong.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Whts wrong in code ?????

    what is the value of result? put a breakpoint to see what value is in the variable
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Whts wrong in code ?????

    Code:
    Private Sub Command2_Click()
    End
    End Sub
    Using End to abruptly stop the program is a bad thing to do. If you have only one form then do Unload me, and if you have more than one form then search this forum for UnloadAllForms.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Location
    Latvia
    Posts
    4

    Re: [RESOLVED] Whts wrong in code ?????

    I find the problem, my php was wrong !
    It shows text in green but when i change it to black it shows correct !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width