Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Jun 24, 2008 11:34 pm   

Databases and retrieving specific columns
 
Here's the situation. I have an equipment database, and I really only want to display a couple of columns when I query it. However, the following command does not work:

#FORALL %find("path") {#SAY &Name &Level &Wear &TotalStats}

Instead, it only returns the first record, despite Path being the 33rd record. #SAY %find("path") works and displays the record number, and #SHOWDB %find("path") displays all the information (though not in order of the database itself, which is a bummer).

Any ideas on what I can use? Or is this a bug with databases? This is annoying as I can't just set up my aliases to show whatever I want it to show anymore...

Charneus
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Wed Jun 25, 2008 9:43 am   
 
#FORALL %find("path") {#DBGET %i;#SAY &Name &Level &Wear &TotalStats}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Wed Jun 25, 2008 10:33 am   
 
Hah. Thanks, Vijilante. Once again, you've come to my rescue. :P

Charneus
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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