forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Variables assigning question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
SK
Newbie


Joined: 29 Dec 2003
Posts: 14

PostPosted: Mon Feb 16, 2004 2:28 pm    Post subject: Variables assigning question Reply with quote

Hi, all
Question about variables:
Is it a way to assign the same value to large number of variables
in one turn... something like this:
Code:
%A = %B = %C = 0

Shocked
Thanks.

_________________
SK
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Feb 16, 2004 2:34 pm    Post subject: Reply with quote

No, but what you could do is, if you have a large list of variables that
you want to change all to a different value each time, use something like:

Code:
%M = 0
GOSUB SETVARS

%M = 1
GOSUB SETVARS

:SetVars
%a = %M
%b = %M
%c = %M
exit

_________________
FreezingFire
VDSWORLD.com
Site Admin Team


Last edited by FreezingFire on Mon Feb 16, 2004 2:43 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Feb 16, 2004 2:37 pm    Post subject: Reply with quote

You can also use the parse command for it:

Code:
parse "%A;%B;%C;%D;%E",%Z|%Z|%Z|%Z|%Z

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
SK
Newbie


Joined: 29 Dec 2003
Posts: 14

PostPosted: Mon Feb 16, 2004 2:49 pm    Post subject: Reply with quote

Thanks for replies,
just thought it is some undocumented trik (something like putting
multiple functions after "if" or "until")...

_________________
SK
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Feb 16, 2004 2:52 pm    Post subject: Reply with quote

I wish it was, but by putting multiply '=' characters after the first '=', will just threath them as a string... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
SK
Newbie


Joined: 29 Dec 2003
Posts: 14

PostPosted: Mon Feb 16, 2004 2:55 pm    Post subject: Reply with quote

Ok, in this case the one thing we can do, is to move it to "Wish List" Wink
_________________
SK
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group