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
horks
Apprentice


Joined: 20 Jul 2001
Posts: 127
Location: USA

PostPosted: Mon Aug 12, 2002 8:12 pm   

Database issue
 
I am trying to create a nice database of the armours on 3k (the mud i play on) .. and I need a little help.

I need the following values to be saved in a variable (system, or user-defined) so that i can report it back out to the mud, when friends ask

1) How can i save the total number of items in the database into a variable?

2) when i use #QUERY or #FIND how can i save the total amount of results to a variable?

3) how can i save the record number of a specified record to a variable?

Father Horks
The only problem with computer security, is when you think it exists.
Reply with quote
horks
Apprentice


Joined: 20 Jul 2001
Posts: 127
Location: USA

PostPosted: Mon Aug 12, 2002 9:47 pm   
 
hmm, couple people have looked at this, but no one has responded. maybe my wording is a little confusing?

all i want is a way to set
#VAR total_items_in_database %1
#VAR total_items_in_query %1
#VAR record_number_of_item_queried %1

how can i define each of these vars?
thanks for the help.

Father Horks
The only problem with computer security, is when you think it exists.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Aug 12, 2002 10:14 pm   
 
1. #VAR numrecords %numrec()

2. Instead of using #QUERY and #FIND, use %query and %find. Then, you can do:
#VAR numfinds %numitems(%find("blue"))

3. Again, use %query and %find, these return the record number of each record that matches the criteria.

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