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


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Fri Jul 19, 2002 7:56 am   

creating a notebook
 
could anyone help me with creating a notebook for zmud using the DB
commands i need in it:

DB should contain: ID numbers, and a Text field for every ID.

Note %string // enter a note in the DB using the next ID number.

DNote #ID // delete a note using the ID number.

LaNnote #ID // look at a note using ID number

LiNote // list the note DB ID numbers

i'm not very good at using the DB so any help would be just great



Yugo Sangori
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jul 19, 2002 12:10 pm   
 
First, you would need to create the strcuture of the database. Create a new database, and go to Fields. In there just create a single field: Note (you give it any name you want.) The type should already be Text, so there is no problem. Now, for the commands:

#ALIAS Note {#NEW All {Note="%-1"}}
#ALIAS DNote {#DBDEL %1}
#ALIAS LaNote {#SAY Note %1 - %db(%dbget(%1), Note)}
#ALIAS LiNote {#SAY IDs of Notes:;#LOOPVIEW {#SAY %leftback(&Num, 2)}}

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