11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

The following program segment is taken from “Appendix A, Sample Program” of<br />

Developing <strong>UniBasic</strong> Applications. It deletes the attribute in the variable POSITION.<br />

This removes one order for a particular client from the CLIENTS file in the demo<br />

database.<br />

1-201 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

DELETE_RECORD:<br />

* (Assuming the order #'s are on line 12)<br />

READVU ORDER_LINE FROM CLIENT_FILE,CLIENT_NUMBER,12 THEN<br />

LOCATE ORDER_NUMBER IN ORDER_LINE SETTING POSITION THEN<br />

DEL ORDER_LINE<br />

END<br />

In the following example, the program segment deletes the third attribute of the<br />

dynamic array ARRAY1. The attribute removed is ‘Anne’.<br />

ARRAY1 = '#543':@AM:'Dorothy':@AM:'Anne':@AM:'Parker'<br />

DEL ARRAY1<br />

In the following example, the statement is invalid. The DEL statement has too many<br />

parameters:<br />

ARRAY1 = '#543':@AM:'Dorothy':@AM:'Anne':@AM:'Parker'<br />

DEL ARRAY<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

DELETE, EXTRACT, INSERT, REMOVE, REPLACE, SUBSTRINGS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!