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
aqilon
Newbie


Joined: 30 Aug 2002
Posts: 3

PostPosted: Fri Aug 30, 2002 4:30 pm   

Syntax error ?
 
Can you tell me what syntax to use if I want to add a value to database record ... for example i have in record field named: Value, type number. I write #ADD %rec.Value 1
but there is no effect... of course %rec is current record. There are no other problems in my database, assesing it, or performing operations on it, exept this one... i cannot add ...
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Aug 30, 2002 9:53 pm   
 
Try #ADD &Value 1
If that doesn't work you will have to do %rec.Value=%eval(%rec.Value + 1)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Aug 30, 2002 10:38 pm   
 
quote:

Try #ADD &Value 1
If that doesn't work you will have to do %rec.Value=%eval(%rec.Value + 1)



I dunno if #ADD would work (it should, though), but you can simply use the #ADDKEY command. Works EXACTLY like #ADDITEM except that it fills in existing fields and creates new ones instead of working with stringlists.

li'l shmoe of Dragon's Gate MUD
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