|
Escape character and special character |
Top Previous Next |
|
Escape character
A character ~ (tilda) can be used as an escape sequence in the case you need to include the comma as part of a string parameter as an example below:
FSCommand("CopyFile", "C:\\Data\\Building~, Material and Registration.doc,C:\\Migration\\Building~, Material and Registration.doc");
This FSCommand will copy a file at C:\Data\Building, Material and Registration.doc into C:\Migration\Building, Material and Registration.doc
Special character
A special character \n may be used to define a new line in any string parameter. An example below will create a new line within the message box string message.
FSCommand("MessageBox", "2, Testing MessageBox,Line1\nLine2,1,RetVal");
Another special character \\ must be used to represent \ in a file path. Eg: C:\data\test.dat must be written as C:\\data\\test.dat.
|