Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Lenny on November 01, 2003, 11:33 PM

Title: Control Array of Winsocks
Post by: Lenny on November 01, 2003, 11:33 PM

Dim i As Integer
   For i = 1 To totalBots
       Load wsBNET(i)
   Next i


The compiler tells me "wsBNET" function is not defined.  It seems like there's a simple mistake somewhere, but I can't find it

========================================================

Problem Solved, didn't realize it required more than just the name but the object:

Load wsBNET.Winsock(i)
Title: Re:Control Array of Winsocks
Post by: Freeware on November 02, 2003, 07:32 PM
Quote from: Lenny on November 01, 2003, 11:33 PM

Dim i As Integer
   For i = 1 To totalBots
       Load wsBNET(i)
   Next i


The compiler tells me "wsBNET" function is not defined.  It seems like there's a simple mistake somewhere, but I can't find it

========================================================

Problem Solved, didn't realize it required more than just the name but the object:

Load wsBNET.Winsock(i)


??? I have never had to specifiy the object...
Title: Re:Control Array of Winsocks
Post by: Lenny on November 03, 2003, 07:43 PM
Actually it was even more of a careless mistake, I forgot to specify the form in which the control was located...
I just didn't feel it necessary to post again, since the problem was solved even though at first incorrectly.