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.

C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm<br />

3/5/10<br />

XLATE<br />

Syntax<br />

XLATE(filename, rec.id.expr, attrib.expr, "code")<br />

Description<br />

The <strong>UniBasic</strong> XLATE function returns the contents of an attribute, and takes<br />

additional action if the record does not exist or the attribute is empty.<br />

This function performs the same action as the TRANS virtual attribute function.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

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

filename Specifies the name of a file from which to return the contents of an<br />

attribute. file.expr must be the name of a valid UniData file, not the value<br />

of a file variable, even if the same file was opened within the program.<br />

rec.id.expr Specifies a record ID in file.expr.<br />

attrib.expr Specifies a valid attribute in file.expr.<br />

"code" Enter a code specifying action to be taken if the record does not exist or<br />

the attribute is empty:<br />

C – Substitutes the id.expr for the value of the function.<br />

V – Returns an empty string and prints an error message.<br />

X – Returns an empty string.<br />

XLATE Parameters

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

Saved successfully!

Ooh no, something went wrong!