Advertisement

FILE command in macro - coding for CANCEL button

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

6 posts Page 1 of 1
In the body of my macro I use a FILE command for selecting comparison chromatogram. If I press OK (after selecting) macro runs as expected. However, if I press CANCEL then I have a problem - the macro stops and document for printer is hanging as my macro started executing STARTJOB. If _button = 0 ... doesn't work. There is no error so I cannot use ON_ERROR.
I want to make some simple coding with ENDJOB command for the case if CANCEL button is pressed.
Any ideas? Highly appreciate it.
I presume that you are using ChemStation. Exactley which version are you using and which command.

Gasman
Chemstation E.02.00 and they call it FILE macro in Help though from macro log it is hard to figure out how it works and I don't know where it is located.
I cannot help you much, as I am a GC ChemStation user and not a MS ChemStation user. There are big differences in the macro language area. I do not see a macro named FILE in my list of loaded macros in GC ChemStation. The GC version does have a function named 'SelectFile', which enables you to select a file to load. You could check if this function is available in the MS ChemStation.

Gasman
There is no SELECT FILE in my lists, but I can see FILE macro in my list, though the trick is to find it.
Already figured it out. FILE is inside envcomm2.mac
6 posts Page 1 of 1

Who is online

In total there are 31 users online :: 1 registered, 0 hidden and 30 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: Semrush [Bot] and 30 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