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.

OCONV Pattern Match (P)<br />

Syntax<br />

OCONV(str.expr, "P(op)[;(op).....]")<br />

Description<br />

The OCONV pattern match (P) function checks a string for a match with one of the<br />

patterns or strings specified in op. If the entire string does not match one of the<br />

patterns or strings, UniData returns an empty string. If the input value or conversion<br />

code is invalid, UniData returns the input value. OCONV pattern match performs the<br />

same function as the ICONV pattern match function.<br />

Note: In BASICTYPE P, OCONV returns an empty string if UDT.OPTIONS 56 is on<br />

and the input value or conversion code is invalid.<br />

Parameters<br />

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

Paramete<br />

r Description<br />

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

str.expr Indicates a string to be searched.<br />

op Specifies the pattern to search for in str.expr.<br />

nN – Integer followed by N tests for that number of numeric characters.<br />

nA – Integer followed by A tests for that number of alpha characters.<br />

nX – Integer followed by X tests for that number of alphanumeric characters.<br />

lit.str – Indicates a literal string to be searched for in str.expr.<br />

; Separates multiple patterns.<br />

OCONV Pattern Match (P) Parameters

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

Saved successfully!

Ooh no, something went wrong!