ampersand in text

Avatar

Avatar

DKinsley

Avatar

DKinsley

DKinsley

08-05-2017

How do I use an ampersand (&) in a text script?

I cannot use "and" because it is a legal name of a company.

"Company & Company"

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

radzmar

MVP

Avatar

radzmar

MVP

radzmar
MVP

08-05-2017

Just use the unicode sequence '\u0026' to display the ampersand character.

xfa.host.messageBox("Company \u0026 Company");

Answers (1)

Answers (1)

Avatar

Avatar

DKinsley

Avatar

DKinsley

DKinsley

08-05-2017

Is it also okay to use &&