Monday, February 28, 2011

jBase Infobasic Command CONVERT

The CONVERT function is the function form of the CONVERT statement. It performs exactly the same function but may also operate on an expression rather than being restricted to variables.

Command Syntax

CONVERT (expression1, expression2, expression3)

Synatx Elements

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

NOTE: For Prime, Universe and Unidata emulations:

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

Example

Value = CONVERT (Value, "#.,", "$,.")

Value = CONVERT(PartCode, "abc", "ABC")

Value = CONVERT(Code, "1234567890", "0987654321")

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