Share via


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 ([]):

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:

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

For more information, see STORE Command.

See Also

Reference

Character Operators

Other Resources

Building Expressions