Page 1 of 1

bypassing [OK] button in "Specify Columns to Plot"

Posted: Wed Aug 17, 2022 10:27 am
by AA
I have a macro that reads multiple files:

FileType(4)
ForFilesIn("*.txt",A)
NextFile

for every file read, a window pops up and have to click the [OK] button to plot and continue.

Q. is there a way to bypass the clicking on [OK] , just read and plot the files.?

Thank You,

-Abel

Posted: Thu Aug 18, 2022 11:02 am
by DPlotAdmin
The "Pick Columns to Plot" setting is persistent. If you select it once, it will by default be selected the next time you open a file - in this session or in subsequent sessions. However, you can get around this with ColumnsAre:

Code: Select all

FileType(4)
ColumnsAre(0)
ForFilesIn("*.csv")
    FileSaveAs("Portable Network Graphics",".png")
    FileClose()
    ColumnsAre(0)
NextFile
See https://www.dplot.com/help/index.htm?co ... ommand.htm