Adding and Maintaining Formats
Use the Formats command from the Schema menu in the Schema Browser to define format strings for use with primitive types in your schema methods.
The
To access the Format Browser
-
Select the Formats command from the Schema menu.
The Format Browser is then displayed. Use the Format Browser to define or maintain format strings for use with primitive types in your schema methods.
The Formats menu, accessed from the Format Browser, contains the commands listed in the following table.
Command | Action | For details, see … |
---|---|---|
Add Short Date Format | Displays the Add Short Date Format dialog | Adding a Short Date Format |
Add Long Date Format | Displays the Add Long Date Format dialog | Adding a Long Date Format |
Add Time Format | Displays the Add Time Format dialog | Adding a Time Format |
Add Numeric Format | Displays the Number Format dialog | Adding a Numeric Format |
Add Currency Format | Displays the Add Currency Format dialog | Adding a Currency Format |
Change | Displays the Format dialog for the selected format | Maintaining Formats |
References | Displays the References window for the selected string | Viewing References to Formats |
Remove Format | Deletes the selected format | Removing a Format |
For example, if you define a short date format called MyShortFormat using the Add Short Date Format command, you could use that format in a JADE method, as follows.
write "The date today is " & date.userFormat($MyLongDate); // Outputs The date today is Wednesday, 27 of November, 2002
When you use a defined format in a JADE method, you must prefix your user format names with a dollar sign ($); for example, userFormat($MyDate).
The date would then be formatted in the manner defined in the Add Short Date Format dialog for MyShortFormat.
When you select a format in the Format Browser, an example of the selected format is displayed in the status line.
You can expand (open) and collapse (close) format sheet nodes in the Format Browser. For example, if you have a number of short date formats, double-click the Short Date Formats sheet to suppress the display of your short date formats.