Results 1 to 5 of 5

Thread: this code aint working can someone in here please tell me why

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    Call Ws.Connect(Text1.Text, Text3.Text)
    Text3.Text = Text3.Text + 1
    timeout 0.9
    timeout 0.9
    Ws.Close


    i get a error that say address is not able from local machine please tell me why?

  2. #2
    Member
    Join Date
    Feb 2000
    Posts
    43

    Post

    heeeheee

    I had that problem last week

    try using variables instead of reading the textbox .text property directly.

    ex:

    t1 = text1.text
    t3 = text3.text

    Call Ws.Connect(t1, t3)
    Text3.Text = t3 + 1
    timeout 0.9
    timeout 0.9
    Ws.Close

    btw what are you making? some kind of port scanner?

    ------------------
    Rapmaster

    [This message has been edited by Rapmaster (edited 02-12-2000).]

  3. #3
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Post

    Call Ws.Connect(Text1.Text,Int(Text2.Text))
    Text3.Text = Int(Text3.Text) + 1
    Timeout 0.9
    Timeout 0.9
    Ws.Close

    Yes it looks like a port scanner

    ------------------
    Regards,

    Paul Rivoli
    -------------------
    [email protected]
    http://users.bigpond.com/privoli

  4. #4
    Member
    Join Date
    Feb 2000
    Posts
    43

    Post

    actually i found that vb doesn't like it when you give it the contents of a text box as RemoteIP ... at least not in my other project.

    Anyway... by replacing it with a variable as above I got it to work. Spent so much time troublshooting much more complicated things that I didn't have time to figure out exactly WHY this was happening.

    oh well

    ------------------
    Rapmaster

  5. #5
    New Member
    Join Date
    Mar 2000
    Posts
    6

    Post What is the "timeout" function anyways? Just curious?

    What is the "timeout" function? I'm new at this, and I'm not sure what it is. Sorry if it is a stupid question.

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