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

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sat Jun 29, 2002 11:27 am    Post subject: Variables Reply with quote

How do I create a variable variable-name?
I'v tried something like: %%name%%id = %%something, but it doesn't work. %%name needs to stay "Name" and %%id needs to change.
Can somebody help me?

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Jun 30, 2002 12:23 am    Post subject: Reply with quote

VDS will not do this (would be nice though...).

I'm not exactly sure what you're trying to accomplish, but
you can probably use a list with the %%name and %%id
vars separated into fields. Then use @match() to find the
appropriate info.
Code:

LIST CREATE, 1
rem -- Add name, ID, and data (more if needed) --
LIST LOADTEXT, 1,
"Joe|1|test1
"Joe|2|test2
"Joe|3|test3

if @match(1, "Joe|2")
   PARSE ";;%%data", @item(1)
   INFO %%data
end

If you can't get something like this to work, give us a
few more details about what you're trying to do.

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
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 -> General Help 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