User Tools

Site Tools


string_expressions.htm
Navigation:  Language Reference > 10 - Expressions > Types of Expressions >====== String Expressions ====== Previous pageReturn to chapter overviewNext page

String expressions may be used as parameters of procedures and attributes, or as the source portion of an assignment statement when the destination is a string variable. String expressions may contain a single string or numeric variable, or a complex combination of sub-expressions, procedures, and operations.

Example:

StringVar   STRING(30)

Name        STRING(10)

Weight      STRING(3)

Phone       LONG

CODE

!Concatenate a constant and variable

StringVar = 'Address:' & Cus:Address

!Concatenate constant values

!and FORMAT procedure's return value

StringVar = 'Phone:' & ' 305-' & FORMAT(Phone,@P###-####P)

!Concatenate a constant and variable

StringVar = Weight & 'lbs.'

See Also:

CLIP

The Concatenation Operator

Data Conversion Rules

FORMAT

string_expressions.htm.txt · Last modified: 2021/04/15 15:57 (external edit)