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


Joined: 17 Oct 2002
Posts: 26
Location: USA

PostPosted: Mon Nov 04, 2002 1:31 am   

Database Field Names
 
Is there a way to have Field names in a database that are 2 words such as "Hit Bonus" or "Typical Cost"?
Because when you do a #SH &Name - it will show you the name of the active record in the current db. But how would you show a field that has the the name of "Hit Bonus" or "Typical Cost"?? If there is no way to do it, I can make it all one word, but I would rather them two words if at all possible.

Thanks,
MadBomber
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Mon Nov 04, 2002 5:45 am   
 
Yes, you can have multiple word field names, but as you mentioned, it makes things a mite harder.

&key, %rec.key, and %db(%rec,key) are all synonymous terms. The last one is what you'll have to use:

#SH %db(%rec,"Hit Bonus")

Troubadour
(Win 98, Pentium III, 550 MHz)
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