READSELECT
|
Syntax: |
READSELECT ON ERROR … END |
|
Meaning: |
Reads in SELECT the data record which is shown with the highlight bar. In the case
of an error the block ON ERROR … END is executed. The data record is read by the key that was
specified with SELECT. In the ON SELECT (<Taste>) Macro this instruction must be executed if the data of the current
data set are to be accessed. In SELECT
the data record currently shown inverse is normally not the data
record which was last read. |
|
Sample: |
ON SELECT(F2) MACRO
SELECT.F2 H% = SELECT(CUSTOMER,0,0,"Select
Customer",NUMBER,,NAME$) … Macro SELECT.F2: READSELECT ON ERROR
… Error … END IF CUSTOMER.TYPE$ <> "C" THEN ERRORMES
= "Attention: No customer!" ENDIF … |
|
See also: |
|