Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ampersand in a string literal

Status
Not open for further replies.

MichaelHuber

Programmer
May 22, 2003
27
US
How do I embed an ampersand (&) in a string?

For instance:
WHERE MY_FIELD EQ 'R&D';

would return the following error:
(FOC295) A VALUE IS MISSING FOR: D

Apparently, it thinks that &D is a Dialogue Manager variable!

Thanks for your insight,
Michael
 
Try the following:

'R&|D' the concatenation symbol is inserted following the ampersand.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top