Sunday, March 6, 2011

jBase Infobasic Command CONVERT (STATEMENT)

The CONVERT statement converts one or more characters in a string to their corresponding replacement characters.

Command Syntax

CONVERT expression1 TO expression2 IN expression3

Syntax Elements

expression1 is the list of all characters to translate in expression3
expression2 is the list of characters that will be converted to.
expression3 is the string to which the conversion will apply.

Notes

There is a one to one correspondence between the characters in expression1 and expression2. That is, conversion of character 1 in expression1 to character 1 in expression2, etc.
See also: the CONVERT function.

Example

Value = 'ABCDEFGHIJ'
CRT 'Orignal: ':Value
CONVERT 'BJE' TO '^+!' IN Value
CRT 'Converted: ':Value
Orignal: ABCDEFGHIJ
Converted: A^CD!FGHI+

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems