<<

Contents

Search

>>

 

EBUS_SELECT

 

 

Variable

 

 

Meaning:

Specifies in ON SELECT MACRO whether a data record is shown on screen.

 

The ON SELECT MACRO is executed every time a data record of the Index File has been read in the SELECT. The macro is executed before the read data record is displayed on screen.

 

The variable EBUS_SELECT specifies whether the data record is shown or not shown on screen after the macro has been executed. If EBUS_SELECT = 0, the data record will not be shown, otherwise it will be shown. EBUS_SELECT is set to 1 before every time the macro is executed.

 

If EBUS_SELECT is set to 99, the data end will be simulated, which means the current data record will not be shown and no further data records will be read. This can be used in order to restrict the number of data records to be read.

Changeable:

Yes

 

Sample:

/* Show customers from number 100 – 200 only

CUSTOMER.NR = 100

ON SELECT MACRO CUSTOMER.CHECK

H% = SELECT(CUSTOMER,0,0,"CUSTOMER","",0,"",NR,,NAME$,,PHONE$)

 

Makro CUSTOMER.CHECK:

IF CUSTOMER.NR < 100 /* if it had been scrolled backwards

OR CUSTOMER.NR > 200

THEN EBUS_SELECT = 99

ENDIF

 

See also:

ON SELECT MACRO

SELECT