Thread

Multiple Login (Sdk)

Multiple Login // Sdk

1  |  

strike rapier

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

silenced

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]

kah

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]

dion

Mar 4, 2002, 8:16pm
Off-Topic Question:
Does VB use regulary DO...LOOPs as well?
DO
LOOP UNTIL x = 1
??
[View Quote]

binarybud

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]

kah

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

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]

binarybud

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]

strike rapier

Mar 5, 2002, 4:22pm
Thankya :) Ill try all that youve sugested :)

[View Quote]

jerme

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]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn