Page 1 of 1

Chemstation macro ChromReg SampleName field wrong

Posted: Wed May 10, 2017 3:18 am
by mretier
Hi,
I wrote a macro exporting all selected chromatograms in Chemstation to .csv.
This works well, the only field that does not yield the expected results is ObjHdrVal(ChromReg, "SampleName"). In Chemstation the sample name field shows specific names, when exporting, however, I only get strange numbers.

Any input would be greatly appreciated.

Best,
Michael

Re: Chemstation macro ChromReg SampleName field wrong

Posted: Wed May 10, 2017 3:47 am
by mretier
answering my own question because I just found the solution:

Instead of "ObjHdrVal", one has to use "ObjHdrText$" because of the distinction in the macro programming language between strings and numerics.