|
quicksilver85 Beginner
Joined: 16 Jan 2004 Posts: 15 Location: USA
|
Posted: 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. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: 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) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|