Page 1 of 1

GC Chemstation macro escape characters

Posted: Wed Jun 25, 2014 10:42 pm
by aidnai
Hi everyone,
I'm writing a macro for GC chemstation version B.03. Trying to build multiline strings, but I can't figure out how to insert the carriage return/line feed.
I would like something like

_SAMPINFO2$ = line1$ + "\n" + line2$

In the documentation (400+ page document for programming macros) I found that when printing newlines to a file "/" is used. In another place it states that strings in certain tables use "\n" to mean newline. Neither of these escape characters work for what I am doing.

Any ideas? Thanks in advance!
Aidan

Re: GC Chemstation macro escape characters

Posted: Wed Jun 25, 2014 11:26 pm
by aidnai
Hi everyone, I was able to figure this one out. Escaping is very similar to VB. You can use CHR$(ANSI/ASCII number in decimal) to input special characters instead of using escape sequences.

_SAMPINFO2$ = line1$ + CHR$(10) + line2$

Just putting it up here in case someone else stumbles onto it...