Controlling the Data Browser from procedure

JellyGem
Posts: 4
Joined: 2012-04-11
Location: United Kingdom

Does anybody know how to control the data browser from a user function?
I would like to write a procedure which opens a data folder, in the same way as when you click the "+" symbol in front of the name of the folder on the data browser.


WTZero
Posts: 14
Joined: 2009-07-09
Location: United States

I think command "setdatafolder" could work.

JellyGem wrote:
Does anybody know how to control the data browser from a user function?
I would like to write a procedure which opens a data folder, in the same way as when you click the "+" symbol in front of the name of the folder on the data browser.


JellyGem
Posts: 4
Joined: 2012-04-11
Location: United Kingdom

WTZero wrote:
I think command "setdatafolder" could work.

JellyGem wrote:
Does anybody know how to control the data browser from a user function?
I would like to write a procedure which opens a data folder, in the same way as when you click the "+" symbol in front of the name of the folder on the data browser.

The "setdatafolder" command will set the current datafolder but will not show the content of it on the data browser.
What's displayed on the browser is pretty much the same before and after.
What I want to do is to display the content of a specific folder, in the same way when you click the "+" symbol with your mouse.
I want to do this not by using a mouse but from a user function.


Posts: 908
Joined: 2007-06-21
Location: United States

Execute:

DisplayHelpTopic "ModifyBrowser"

The expand keyword is what you are interested in.

I'm not sure how you will come up with the lineNum parameter. The GetBrowserLine function might help.


JellyGem
Posts: 4
Joined: 2012-04-11
Location: United Kingdom

hrodstein wrote:
Execute:
DisplayHelpTopic "ModifyBrowser"

The expand keyword is what you are interested in.

I'm not sure how you will come up with the lineNum parameter. The GetBrowserLine function might help.

This will do the job, thanks!


Back to top