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.

STATUS Codes<br />

ENABLEDEC has the following STATUS codes:<br />

STATUS<br />

Code Description<br />

Example<br />

The following example illustrates enabling decryption on two fields in a file using a<br />

quoted string:<br />

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

0 No error, operation successful<br />

1 Decryption is already enabled<br />

2 General operation failure, such as an open file error<br />

3 File is not an encrypted file<br />

4 Attempting operation on WHOLERECORD encrypted file<br />

5 Field(s) is not an encrypted file<br />

6 Cannot locate information to disable encryption<br />

7 Field is not a valid field in this file<br />

ENABLEDEC STATUS Codes<br />

ENABLEDEC "CUSTOMER","NAME,PHONE" ON ERROR PRINT "Unable to enable<br />

decryptiON<br />

The next example illustrates enabling decryption on two fields using variables:<br />

CUST="CUSTOMER"<br />

FIELDS="NAME,PHONE"<br />

ENABLEDEC CUST,FIELDS ON ERROR PRINT "Unable to enable decryption"

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

Saved successfully!

Ooh no, something went wrong!