 |
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Sat Dec 22, 2001 6:02 pm
editing existing databases |
i've added three new fields to an old databse. what i'm trying to do now, is #loopview the whole database, execute commands for each record, and adjust one of the new fields for that record.
main script:
#var openroom ""
#dbload ar
#loopview {
index = %rec.lvnum
#while (@index <= %rec.uvnum) {
#temp {No such location.} {#additem openroom @index}
goto @index
#wait
#add index 1
}
%rec.open_room = @openroom
#var openroom ""
}
its the line in blue that just doesnt work. i've tried replacing it with this:
#dbput %rec open_room @openroom
and that came close to working, put it only put the variable into 1 record
any suggestions? |
|
|
|
 |
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Sat Dec 22, 2001 6:37 pm |
ok, i fixed it
the command
#addkey open_room @openroom
works perfectly. i'm still a little confused about why :
#dbput %rec open_room @openroom
didnt work tho |
|
|
|
 |
|
|
|
|
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
|
|