DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a specific sheet in View via script?

Hi,

 

I am using the InteractionOn() command and WndShow("VIEW") to allow the user to view some of the results then continue. I want to have the script send the user to the correct sheet on the view panel. I cannot figure out how to do this. I have found how to alter anything in the view panel via script but not how to simply call out witch sheet is displayed when I use the WndShow("VIEW") Command. Any help would be appreciated.

 

Thank you,

 

0 Kudos
Message 1 of 3
(3,671 Views)

Hi Eyoung6676,

 

You can acomplish this with the sheet object's Activate() function. For instance if you wanted to open the second sheet in the DIAdem View pane then you would want to add the following line before your call to WndShow:

View.Sheets(2).Activate()

 

Note, that this is 1-based indexing, so the second sheet is index 2.

 

Kevin F.

Applications Engineer

National Instruments

0 Kudos
Message 2 of 3
(3,645 Views)

Thank you Kevin,

 

I thought I tried that allready, but I must have messed it up when I did. That did work for me.

 

 

0 Kudos
Message 3 of 3
(3,639 Views)