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

Have a suggestion for improving DPlot or a question about existing features? Let us know
Post Reply
AA
Posts: 1
Joined: Wed Aug 17, 2022 9:56 am

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

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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
Visualize Your Data
support@dplot.com
Post Reply