EDITNUMBER


8.7C, PLBCMP GUI Only

square.png Properties

square.png Events

square.png Methods

square.png Instructions

 

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:

 

(1)

[label]

EDITNUMBER

[%]

(2)

[label]

EDITNUMBER

(arraysize)

(3)

[label]

EDITNUMBER

^

(4)

[label]

EDITNUMBER

^,{target}

(5)

[label]

EDITNUMBER

^(arraysize)

(6)

[label]

EDITNUMBER

^(arraysize),({target}),...,({target})

 

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:

  1. 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.

  2. Items are accessible through the SETITEM or GETITEM instructions.

  3. 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.

  4. 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.

  5. Multi-dimension arrays are supported up to a maximum of fourteen dimensions.

  6. The ^ denotes a Pointer Variable.

  7. Although an EDITNUMBER may be defined as Global, it is DESTROYed during a CHAIN instruction.

 

 

See Also: Example Code, Object Definitions, Object Output Instructions

 



PL/B Language Reference EDITDATETIME EDITTEXT