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


Joined: 16 Jan 2004
Posts: 15
Location: USA

PostPosted: Sat Jan 17, 2004 2:59 am   

Scripting and window question.
 
First and foremost, anyone wanna tell me how to -permanently close a child window?
Secondly, I need help figuring out how to use a database variable in a trigger.
It's a date time type thing and I am trying to figure out how to make a trigger that will use the database variable (filled with each month name and corresponding number value) to set another variable to the number value of the month based on the month's name.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sat Jan 17, 2004 11:20 am   
 
Close the child window by making it the active window, and pressing alt-F4. Then save layout.
For your database variable, you'd do something like this:

Create initial database variable:
#ADDKEY MonthNumber {January=1|February=2|March=3|April=4|May=5|June=6|July=7|August=8|September=9|October=10|November=11|December=12}

Retrieving the number of a month from the variable:
#fun GetMonthNum {%db(@MonthNumber,%1)}

Usage: @GetMonthNum(MonthName)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jan 17, 2004 6:56 pm   
 
Some other ways to close a child window.
1. Make the child window the active window and select Close Window from the File menu.
2. Use the #CLOSE command
#CLOSE Child
3. Use the #MAKEWINDOW command
#MAKEWINDOW Child close
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