SELAEDIT
|
Syntax: |
SELAEDIT(<Fields>,<Field Params>,<Decimal
Separator>,<Key> [,[<Macro Before>] [,[<Macro
After>] [,<Handle>]]])
|
||||||||||||||
|
|
|
||||||||||||||
|
Meaning: |
SELAEDIT edits fields of the current line in SELECTA, which contains fields
separated by a separator. <Fields> contains separated by semi-colon the
numbers of the SELECTA fields to be edited and in this way also defines the
order of field processing. <Field Params> contains separated by
semi-colons the field parameters of the fields. For each field number in
<Fields> the field parameters must be specified. The field parameters
have the following structure: <Field Type>, <Field Length>
[,<Post Decimal Positions>, <Zero Display> [,<Grouping
Separator>]]
Fields are processed in the same way as
masks. With <→|>, <RETURN> and <|←> program control can jump forwards and backwards within the fields.
With the keys <↓> and <↑> program control can line-wise scroll forwards and backwards. Every
field of <Fields> can be clicked with the mouse. After a field is left
the changed field value in entered into the table of SELECTA. The whole field processing is terminated by
<Esc> in any field (the changes of the current field are not adopted)
or by <RETURN> or by <→|> in the last field. <Key> then contains the last pressed key by
which field processing was terminated. Field processing is also terminated by
the instruction ENDPROG in the <Macro Before>, <Macro After>, ON
<TASTE> MACRO or ON <EREIGNIS> MACRO. <Key> the contains the empty string "". <Macro Before> and <Macro After>
are executed before or after the field input, just like with mask fields. In
these Macros EBUS_MNR is always = 1. Like with the mask processing EBUS_FNR contains the field sequence which is counted from 1. <Handle> specifies in which window SELECTA is running. <Handle> can contain the window depth or the handle
of a split window or a WINDOWCALL window. If the parameter
<Handle> is missing, SELECTA has to run in the current window. Note: EBUS_FNR does not contains the
numbers of <Fields> but the field sequence. Example:
<Fields> = "2;6;4" EBUS_FNR = 1, if the SELECTA field No. 2 is edited. EBUS_FNR = 2 with field No. 6 and = 3 with
field No. 4. Note: While the macros are executed the current ON <KEY> Macros and not the ON
SELECT(<KEY>) Macros apply! Another value can be assigned to the current
field in the ON
<KEY> Macro with the help of
the variable EBUS_TRANSFER, EBUS_DATA and EBUS_DATA$. In the ON SELECT(RETURN) macro the variable EBUS_SELECT_FIELD contains the number
of the column which has been clicked. Therefore it is possible to specify an
individual sequence of the fields which shall be edited by SELAEDIT. SELAEDIT returns the following values:
|
||||||||||||||
|
Parameter: |
|
||||||||||||||
|
Sample: |
DIM T$(3) T$(1) = "Smith John;19.03.1954;235,40" T$(2) =
"Meier Josef;23.07.1965;0" T$(3) =
"Becker Susi;12.01.1958;-1235,75" ON SELECT(RETURN) MACRO EDIT WINDOWPOS(5,10) H% = SELECTA(T$,"",3,"SELECTA",1,3,";") ... Macro EDIT: NO$ =
"2;3;1" /* Edit fields 2, 3 and 1 FIELDPARAMS$ =
"D,8;N,8,2,1;A,20" H% = SELAEDIT(NO$,FIELDPARAMS$,",",KEY$) IF H% <> 0 THEN ERRORMES
= "Error" + STR$(H%) ENDIF |
||||||||||||||
|
See also: |
|