# CHANGE()

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

CHANGE( variable, expression1, expression2 )
1

Where:

  • expression1 may evaluate to any result and is the string of characters that will be replaced,
  • expression2 may also evaluate to any result and is the string of characters that will replace expression1,
  • variable may be any previously assigned variable in the program.

# Info

Either string can be of any length and is not required to be the same length. See also the SWAP function.

The jBC language also supports the CHANGE statement.

An example of use is:

String1 = "Jim"
String2 = "James"
Variable = "Pick up the tab Jim"
CRT CHANGE( Variable, String1, String2)
CRT CHANGE( Variable, "tab", "check")`
1
2
3
4
5

Go back to jBASE BASIC

Go back to Programmers' Reference Guide