Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

CONVERT

Description

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. The function takes the general form:

CONVERT(expression1, expression2, expression3)

Where:

  • 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.

Examples of use are as follows: 

OLD.VAL = "a,b,c;d,e|f,g;h,i"
NEW.VAL = CONVERT(OLD.VAL, ";,|", @AM:@VM:@SVM) ;! NEW.VAL now contains a]b]c^d]e\f]g^h]i


See also: CONVERT Statement.

Go back to jBASE BASIC.


Was this article helpful?