Subscribe Bookmark RSS Feed

How to include other arguments when prompting to open data table in JSL?

markschwab

Community Trekker

Joined:

Apr 15, 2016

I was pleased to discover how easy it is to prompt a user to find a file to open, like this:

Open();

But, what do I do if I want to include other arguments? For example, if I want to make the opened file invisible after prompting the user to select a file? The following produces an error:

Open( , "Invisible");

"Error: Open argument must be string in access or evaluation of 'Open' , Open( Empty(), "Invisible" )"

I ask because I'm trying to get started creating JMP applications - I want to be able to click a button to prompt the user to open a data table, but display the data inside the application itself instead of popping up a new data table.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

The best way is to use Pick File().

file = Pick File();

Open(file, Invisible);

1 REPLY
Solution

The best way is to use Pick File().

file = Pick File();

Open(file, Invisible);