Mar 4, 2002, 6:35pm
Hello folks,
Ive been having problems login in bots and using text to display the
events. It appears that the bot executes teh login command infinate times (I
get the error on brants functions for same item data).
Has anyone else had this problem?
- Mark
Mar 4, 2002, 6:39pm
use a while statement (not sure if you're using VB or if there's a while
statement in VB)
such as this in c++
int x = 0;
while ( x < 3 )
{
Do the login stuff here
x++;
}
That should work .. or just convert it to your friendly neighboorhood VB
code.
-Silenced
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:3c83da9a at server1.Activeworlds.com...
> Hello folks,
> Ive been having problems login in bots and using text to display
the
> events. It appears that the bot executes teh login command infinate times
(I
> get the error on brants functions for same item data).
>
> Has anyone else had this problem?
>
> - Mark
>
>
|
Mar 4, 2002, 8:07pm
Dim x As Integer
x = 0
Do While x < 3
'login stuff
x = x +1
Loop 'or was it Wend?
that should do that in VB
[View Quote]"silenced" <nospam at privacy.com> wrote in message
news:3c83db80$1 at server1.Activeworlds.com...
> use a while statement (not sure if you're using VB or if there's a while
> statement in VB)
>
> such as this in c++
> int x = 0;
> while ( x < 3 )
> {
> Do the login stuff here
> x++;
> }
>
> That should work .. or just convert it to your friendly neighboorhood VB
> code.
>
> -Silenced
>
> "strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
> news:3c83da9a at server1.Activeworlds.com...
> the
times
> (I
>
>
|
Mar 4, 2002, 8:16pm
Off-Topic Question:
Does VB use regulary DO...LOOPs as well?
DO
LOOP UNTIL x = 1
??
[View Quote]"kah" <kah at kahnews.cjb.net> wrote in message
news:3c83f03d$1 at server1.Activeworlds.com...
> Dim x As Integer
> x = 0
> Do While x < 3
> 'login stuff
> x = x +1
> Loop 'or was it Wend?
>
> that should do that in VB
> "silenced" <nospam at privacy.com> wrote in message
> news:3c83db80$1 at server1.Activeworlds.com...
display
> times
>
>
|
Mar 5, 2002, 2:17pm
short answer yes.......
Do [{While | Until} condition]
[statements]
[Exit Do]
[statements]
Loop
Or, you can use this syntax:
Do
[statements]
[Exit Do]
[statements]
Loop [{While | Until} condition]
Leo :)
[View Quote]"dion" <GovDion at subdimension.com> wrote in message news:3c83f253$1 at server1.Activeworlds.com...
> Off-Topic Question:
> Does VB use regulary DO...LOOPs as well?
> DO
> LOOP UNTIL x = 1
> ??
> "kah" <kah at kahnews.cjb.net> wrote in message
> news:3c83f03d$1 at server1.Activeworlds.com...
> display
>
>
|
Mar 5, 2002, 3:35pm
I think the most used version is
Do Until x = 1
'blablabla
Loop
and I also think it's easyest to read anyway.
KAH
[View Quote]"dion" <GovDion at subdimension.com> wrote in message
news:3c83f253$1 at server1.Activeworlds.com...
> Off-Topic Question:
> Does VB use regulary DO...LOOPs as well?
> DO
> LOOP UNTIL x = 1
> ??
|
Mar 5, 2002, 3:44pm
All I know is Quick Basic, and I think you have to write it as
Do
'blablabla
Loop Until x =1
[View Quote]"kah" <kah at kahnews.cjb.net> wrote in message
news:3c8501cf at server1.Activeworlds.com...
> I think the most used version is
>
> Do Until x = 1
> 'blablabla
> Loop
>
> and I also think it's easyest to read anyway.
>
> KAH
>
> "dion" <GovDion at subdimension.com> wrote in message
> news:3c83f253$1 at server1.Activeworlds.com...
>
>
|
Mar 5, 2002, 3:46pm
Well technically it depends on how you need your logic to flow....
That's why they made it both ways...:)
[View Quote]"kah" <kah at kahnews.cjb.net> wrote in message news:3c8501cf at server1.Activeworlds.com...
> I think the most used version is
>
> Do Until x = 1
> 'blablabla
> Loop
>
> and I also think it's easyest to read anyway.
>
> KAH
>
> "dion" <GovDion at subdimension.com> wrote in message
> news:3c83f253$1 at server1.Activeworlds.com...
>
>
|
Mar 5, 2002, 4:22pm
Thankya :) Ill try all that youve sugested :)
[View Quote]"binarybud" <lmauk at traverse.net> wrote in message
news:3c850469 at server1.Activeworlds.com...
> Well technically it depends on how you need your logic to flow....
> That's why they made it both ways...:)
>
>
> "kah" <kah at kahnews.cjb.net> wrote in message
news:3c8501cf at server1.Activeworlds.com...
>
>
|
Mar 6, 2002, 10:14pm
Just for info: The C++ (it's really better than VB in the first place)
syntx for a do-while loop is:
do{
statements
}while(expression)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeremy Booker
JTech Web Systems
(www.JTechWebSystems.com -- Coming Soon)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[View Quote]"dion" <GovDion at subdimension.com> wrote in message
news:3c83f253$1 at server1.Activeworlds.com...
> Off-Topic Question:
> Does VB use regulary DO...LOOPs as well?
> DO
> LOOP UNTIL x = 1
> ??
> "kah" <kah at kahnews.cjb.net> wrote in message
> news:3c83f03d$1 at server1.Activeworlds.com...
while
VB
> display
>
>
|