by
bagee » Sat Nov 12, 2016 5:22 pm
The links you sent me for the flowchart are the same. Not sure if that was an error.
I'm not trying to get you to do it for me, I just want to be able to make it work. I thought I had it with the stack variables as it did work but only in offline but this is not suitable for our work. Just frustrated.
Maybe you can explain what each line means as I know what I want to do, it just is loading the file selection window when running the second macro.
This works to store the blank file path and file name into the ini file. I get that and it works perfectly.
name Add_Blank_Sample_Info
local inifile$,inisect$,i - local variables
inifile$=_METHPATH$+_METHFILE$+"\method.ini" - path and name for file being saved
inisect$="SequenceBlank" - not sure the purpose of this??
i=setinistring(inifile$,inisect$,"DataPath",_datapath$) - puts path in datapath$
i=setinistring(inifile$,inisect$,"DataFile",_datafile$) - puts file in datafile$
GETSCALARS POINT,,R0 - gets chromatogram for R0
i=setinistring(inifile$,inisect$,"YMax",Yhigh) - i dont really need this but get it
return
Then this code will load the blank file and was supposed to store it into the backgnd strings below but it does not work as it opens the file selection window in offline. I have no idea why or where that is coming from.
local inifile$,inisect$,I,Backgnd_File$,Backgnd_Path$,ScaleY - local variables established
inifile$=_METHPATH$+_METHFILE$+"\method.ini" - ini file location
inisect$="SequenceBlank" - dont get this again
Backgnd_File$ = GETINISTRING$(inifile$,inisect$,"DataFile") - puts datafile into backgnd$
Backgnd_Path$ = GETINISTRING$(inifile$,inisect$,"DataPath") - puts path into bckgndpath$
ScaleY= GETINISTRING$(inifile$,inisect$,"YMax") - dont need this
Ive tried ldnewfile backgnd_file$ and backgnd_path$ and the file command and both do the same thing that is loading the sample selection window.
I just want to understand why it is not loading what is stored in the inifile created above and why it opens the file selection window.
Hope anyone can help.