11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

STATUS Codes<br />

DISABLEDEC has the following STATUS codes:<br />

STATUS<br />

Code Description<br />

Example<br />

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

quoted string:<br />

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

0 No error, operation successful<br />

1 Decryption is already disabled<br />

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

3 File is not an encrypted file<br />

4 Attempting operation on a WHOLERECORD encrypted file<br />

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

6 Cannot locate information to disable decryption<br />

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

DISABLEDEC STATUS Codes<br />

DISABLEDEC "CUSTOMER","NAME,PHONE" ON ERROR PRINT "Unable to disable<br />

decryption<br />

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

CUST="CUSTOMER"<br />

FIELDS="NAME,PHONE"<br />

DISABLEDEC CUST,FIELDS ON ERROR PRINT "Unable to disable decryption"

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

Saved successfully!

Ooh no, something went wrong!