Testing for Numeric
Occasionally, we have to allow the user to enter data into an alpha field but we still need to verify that the field only contains numbers. One approach is to examine each byte of the field and checking to ensure that it's between 0 and 9. However, in release 4.2.4 and higher, there's a much better way of doing this check. When using the CNV TEXT to move an alpha to a numeric, APPX will set the T/F flag to F if the sending field is not numeric:
CNV TEXT --- XI = --- TEMP 132 F <field is not numeric>Text under Toolbar Icons
You can enable text and icons in the APPX toolbar. First, in the Client Preferences, [Options], set toolbarStyle=both. Then, in the GUI Attributes for Optional Children, append "@SST=<some text>" to the end of the label. If the Optional Child appears on the toolbar, the 'some text' will appear underneath the icon. Eventually there will be a better way of specifying this, but at the moment you can use this technique. For an example of this, enable the client preference, and go into Application Design.
For additional information, contact firstname.lastname@example.org
[back to top]