UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Example In the following example, the program segment prints “123” and a blank line because X is within the range and Y is not: X = 123; Y = 456789 PRINT ICONV(X,"R100,200") PRINT ICONV(Y,"R100,200") Related Command UniBasic OCONV Range (R) 1-361 UniBasic Commands Reference

ICONV SOUNDEX (S) Syntax ICONV(str.expr, "S") Description The ICONV SOUNDEX (S) function converts string or numeric data specified by str.expr to phonetic format based on SOUNDEX conversion codes. The S conversion code can be used in an ICONV virtual attribute formula. If the input value or conversion code is invalid, UniData returns the input value. For more information about SOUNDEX conversion codes, see the SOUNDEX command. Note: In BASICTYPE P, ICONV returns an empty string if UDT.OPTIONS 56 is on and the input value or conversion code is invalid. Example The following example is virtual attribute, SDX_LNAME, that converts the value of the variable LNAME to its SOUNDEX expression: ICONV(LNAME,"S") Related Commands UniBasic OCONV SOUNDEX (S), SOUNDEX ICONV SOUNDEX (S) 1-362

ICONV SOUNDEX (S)<br />

Syntax<br />

ICONV(str.expr, "S")<br />

Description<br />

The ICONV SOUNDEX (S) function converts string or numeric data specified by<br />

str.expr to phonetic format based on SOUNDEX conversion codes. The S conversion<br />

code can be used in an ICONV virtual attribute formula. If the input value or<br />

conversion code is invalid, UniData returns the input value.<br />

For more information about SOUNDEX conversion codes, see the SOUNDEX<br />

command.<br />

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

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

Example<br />

The following example is virtual attribute, SDX_LNAME, that converts the value of<br />

the variable LNAME to its SOUNDEX expression:<br />

ICONV(LNAME,"S")<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

OCONV SOUNDEX (S), SOUNDEX<br />

ICONV SOUNDEX (S) 1-362

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

Saved successfully!

Ooh no, something went wrong!