Progress
Programming
Handbook
Logical Formats
A logical format specifies the strings you want to use to represent the values true and false. To specify a logical format, specify the true string, followed by a forward slash (/), followed by the false string. For example, to specify the strings on and off for TRUE and FALSE, respectively, use the following format option.
If input is coming from a file and you have defined a format for a logical field or variable that is something other than TRUE/FALSE or yes/no, you can still use TRUE/FALSE or yes/no as input to that logical field or variable.
Table 17–4 shows some examples of how Progress displays a logical value with different formats.
Table 17–4: Logical Display Format Examples Format TRUE FALSE yes/no yes no Yes/no Yes no true/false true false shipped/waiting shipped waiting
NOTE: You cannot use “no”, “n”, “false”, or “f” to represent true, and you cannot use “yes”, “y”, “true”, or “t” to represent false.NOTE: If you use the MESSAGE statement to display a logical value, Progress always uses the default format “yes/no” and disregards any format you may have specified.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |