What is the correct code to place in the When-Button-Pressed trigger?

A form named Orders is saved to the file system as MY_ORDERES.FMB. You are modifying the Customers form, and you want to code a When-Butoon-Pressed trigger to invoke the Orders form only if the Orders form is not already open. What is the correct code to place in the When-Button-Pressed trigger?

A form named Orders is saved to the file system as MY_ORDERES.FMB. You are modifying the Customers form, and you want to code a When-Butoon-Pressed trigger to invoke the Orders form only if the Orders form is not already open. What is the correct code to place in the When-Button-Pressed trigger?

A.
OPEN_FORM(‘ORDERS’,NO_ACTIVATE);

B.
OPEN_FORM(‘MY_ORDERS’,NO_ACTIVATE);

C.
IF NOT FIND_FORM(‘ORDERS’) THEN
OPEN_FORM(‘MY ORDERS’);
ELSE
GO_FORM(‘ORDERS’);
END IF;

D.
IF ID_NULL(FIND_FORM(‘ORDERS’)) THEN
OPEN_FORM(‘ORDERS’);
ELSE
GO_FORM(‘ORDERS’);
END IF;

E.
IF ID_NULL(FIND_FORM(‘ORDERS’)) THEN
OPEN_FORM(‘MY_ORDERS’);
ELSE
GO_FORM(‘ORDERS’);
END IF;

F.
IF NOT FIND_FORM(‘MY_ORDERS’) THEN
OPEN_FORM(‘ORDERS’);
ELSE
GO_FORM(‘ORDERS’);
END IF;



Leave a Reply 0

Your email address will not be published. Required fields are marked *