Creating Character Expressions

Compose character expressions by combining character operators with the following Visual FoxPro elements:

  • Character fields.

  • Functions that return character values.

  • Variables and array elements that contain character data.

  • Character constants, called string literals.

You can embed quotation marks ("" or '') in a character string by enclosing the character string within square brackets ([]):

 CopyCode imageCopy Code
STORE [Robert's Diner] TO cCompanyName
STORE [See the "Sunday Special"] TO cBanner

You can also embed quotation marks by enclosing the character string with quotation marks of the alternate type:

 CopyCode imageCopy Code
STORE "Robert's Diner" TO cCompanyName
STORE 'See the "Sunday Special"' TO cBanner

For more information, see STORE Command.

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic