|
aqilon Newbie
Joined: 30 Aug 2002 Posts: 3
|
Posted: 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 ... |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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) |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|