Non-text character

This forum is for discussing Mailtraq's Scripting features. Get help with Mailtraq scripts, templates and external ActiveX scripting.

Non-text character

Postby hottroc » Wed Feb 15th, 2006 3:33pm

Hi,
How do I add quotation marks into a text string that is in a MsgAddLine function?

eg MsgAddLine("My name is "Fred" you know")

does not work, obviously the string thinks it is terminated just before the F.
hottroc
 

Re: Non-text character

Postby Martin Clayton » Thu Feb 16th, 2006 10:08am

Hi hotroc

hottroc wrote:Hi,
How do I add quotation marks into a text string that is in a MsgAddLine function?

The help file entry for "escape characters" shows:
Code: Select all
\n New Line Places a carriage return (ASCII 10 ASCII 13) in the script
\q Quote Places a quote symbol " " " (ASCII 34) in the script
\l Left Bracket Places a left bracket symbol " { " (ASCII 123) in the script
\r Right Bracket Places a right bracket symbol " } " (ASCII 125) in the script
\\ Backslash Places a backslash symbol " \ " in the script
// Comment Indicates a comment line in a script


(... but the entry for backslash should show "\b").

    E.g., MessageAddLine("Don't \qquote\q me on this") => Don't "quote" me on this

Cheers, Martin
User avatar
Martin Clayton
Expert User
 
Posts: 529
Joined: Sat Jan 15th, 2005 8:20am
Location: London, UK

Postby hottroc » Fri Feb 17th, 2006 5:41am

Many thanks.
hottroc
 

Postby hottroc » Sun Feb 19th, 2006 7:36am

Actually, just thought of another one. If I want to add 2 forward slashes, as in http://www....how do i stop it from becoming a comment?
hottroc
 

Postby Martin Clayton » Mon Feb 20th, 2006 7:13am

Hi,
hottroc wrote:Actually, just thought of another one. If I want to add 2 forward slashes, as in http://www....how do i stop it from becoming a comment?

Unlike the other 'escape character' helpfile entries "//" doesn't apply to quoted text -- it must start at the begining of the line (in Mailtraq's proprietary script language) and it's just for adding comments to script and template files.

Code: Select all
// Test
MessageDlg("http:\\noproblem.com")


Cheers, Martin
User avatar
Martin Clayton
Expert User
 
Posts: 529
Joined: Sat Jan 15th, 2005 8:20am
Location: London, UK


Return to Mailtraq Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron