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
CDS
Beginner


Joined: 31 May 2003
Posts: 15
Location: USA

PostPosted: Sun Jun 08, 2003 4:39 am   

Puzzling Script
 
Anyone have any idea why this script:

#Say Pre-pop dbML: *@dbMatchList*
ThisRecNum = %pop(dbMatchList)
#Say Post-pop dbML: *@dbMatchList*
#Say This Recnum: *@ThisRecNum*

would yield:

Pre-pop dbML: *2eq|4eq|42eq|45eq*
Post-pop dbML: **
This Recnum: **

hmmmm.....
I must have been staring at it too long and can't see what I did wrong! ;) Can anyone see why pop is clearing out the contents of dbMatchList?

Ver 6.62, database is open, dbMatchList contains the correct information in string-list form.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jun 08, 2003 1:21 pm   
 
Can't get it to fail. I just entered these commands into zMUD:
#VAR dbMatchList {2eq|4eq|42eq|45eq}
#SAY Pre-pop dbML: *@dbMatchList*
ThisRecNum = %pop(dbMatchList)
#SAY Post-pop dbML: *@dbMatchList*
#SAY This Recnum: *@ThisRecNum*

and the result was:
Pre-pop dbML: *2eq|4eq|42eq|45eq*
Post-pop dbML: *4eq|42eq|45eq*
This Recnum: *2eq*

So, if you enter those commands too, outside of your script, it does not produce those results? There appears to be nothing wrong with the commands you provided.

Kjata
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