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.

Parameter Description<br />

Examples<br />

In the following example, the program segment executes a UniData SQL command:<br />

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

ASYNC | SYNC UniData no longer supports this parameter, but it remains for<br />

syntax compatibility.<br />

ON connection UniData no longer supports this parameter, but it remains for<br />

syntax compatibility.<br />

ON ERROR statements UniData no longer supports this parameter, but it remains for<br />

syntax compatibility.<br />

EXECUTESQL Parameters (continued)<br />

OUT.COMMAND = "SELECT NAME, ADDRESS, CITY"<br />

OUT.COMMAND := " FROM CLIENTS;"<br />

EXECUTESQL OUT.COMMAND<br />

CLEARSELECT<br />

The following output displays on the terminal screen when you execute the preceding<br />

program:<br />

Page 1<br />

Name Address City<br />

------------------------------ ------------------------- ---------<br />

------<br />

Paul Castiglione 45, reu de Rivoli Paris<br />

Fredrick Anderson 854, reu de Rivoli Paris<br />

Beverly Ostrovich 7925 S. Blake St. Sydney<br />

Cal di Grigorio 913 Montreal Ave. Regina<br />

Franklin Sears 213 Midland St. Perth<br />

Gino Lee 483 E. Silverman St. Fonthill<br />

JoAnn Casey 4024 South Ivywood Circle Omaha<br />

...

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

Saved successfully!

Ooh no, something went wrong!