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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to put odd or reserved characters into a script 1

Status
Not open for further replies.

CustomerResearch

Programmer
May 6, 2003
7
US
I'm trying to put together a script that needs to transmit some reserved symbols. Specifically "" and ~

Whenever I try to put these directly into the script, I get a reserved word error.

IE

transmit "~something"

and (for whatever reason) I need to be able to transmit ""

transmit """" doesn't work... the compile doesn't like it, haha.


I paged through the help and couldn't find the solution to my problem. Any suggestions? (sorry, I'm sure this is really basic... but when you teach this stuff to yourself...)

-------------------------------
Brian, Customer Research Inc
 
By default, the ~ character is used as a pause character, so you need to specify the RAW flag with the transmit command, such as:

transmit "~" RAW

As for the double quotes, you need to use backticks to escape them in the string, so that would look like:

transmit "`"`""

to transmit a pair of double quotes.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top