Advertisement

GC Chemstation macro escape characters

Discussions about chromatography data systems, LIMS, controllers, computer issues and related topics.

2 posts Page 1 of 1
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
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...
2 posts Page 1 of 1

Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 5 minutes)
Most users ever online was 4374 on Fri Oct 03, 2025 12:41 am

Users browsing this forum: No registered users and 25 guests

Latest Blog Posts from Separation Science

Separation Science offers free learning from the experts covering methods, applications, webinars, eSeminars, videos, tutorials for users of liquid chromatography, gas chromatography, mass spectrometry, sample preparation and related analytical techniques.

Subscribe to our eNewsletter with daily, weekly or monthly updates: Food & Beverage, Environmental, (Bio)Pharmaceutical, Bioclinical, Liquid Chromatography, Gas Chromatography and Mass Spectrometry.

Liquid Chromatography

Gas Chromatography

Mass Spectrometry