EDITNUMBER
8.7C, PLBCMP GUI Only
The EDITNUMBER instruction defines an object variable that allows input of numeric values in decimal format. This object is similar to an EDITTEXT object. To define an EDITNUMBER, use one of the following statement formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
^
Optional. Denotes the item as being a POINTER.
target
Required. The name of a previously defined data item of the same type.
Flags Affected: NONE
Note the following:
An EDITNUMBER contains two items. The entire EDITNUMBER is referenced as item number zero. Any selected text within the EDITNUMBER field is referenced as item number one.
Items are accessible through the SETITEM or GETITEM instructions.
EDITNUMBER objects support the clipboard functions of cut, copy, and paste. During paste operations, the format of the data being passed to the object is verified. If the current data in the clipboard is not consistent with the object's definition, the paste operation is not performed and a beep occurs.
Input data is scrolled left when the object is filled if the ALIGNMENT property is set to None or Left. With any other ALIGNMENT property setting, data is truncated within the bounds of the object.
Multi-dimension arrays are supported up to a maximum of fourteen dimensions.
The ^ denotes a Pointer Variable.
Although an EDITNUMBER may be defined as Global, it is DESTROYed during a CHAIN instruction.
See Also: Example Code, Object Definitions, Object Output Instructions
![]() |