Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
cstegmann
Beginner


Joined: 30 Sep 2004
Posts: 14

PostPosted: Thu Jan 27, 2005 3:50 pm   

Accessing the Number in a database record
 
Hey there,

i'm trying to make an alias that will find a certain name in a database record and then give me the corresponding number.

#VAR List {name1|2345|name2|5436|name3|86743} {_nodef}

How would i be able to get the number of name2 and put it into an alias?

Thanks, chris
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Thu Jan 27, 2005 4:04 pm   
 
%db(@list, name1) should return the value for name1, and the same for name2, name3, etc., assuming that the above is meant to be a rec var and not just a string list.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
cstegmann
Beginner


Joined: 30 Sep 2004
Posts: 14

PostPosted: Thu Jan 27, 2005 4:08 pm   
 
thanks, that works great
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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

© 2009 Zugg Software. Hosted by Wolfpaw.net