DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing view area dialog box controls

I'm really new to DIAdem, and I have been having trouble finding documentation for the various methods and objects that are used when writing scripts. I am trying to access a button on a dialog box in the view area. Here is what I have tried so far:

 

View.Sheets("Sheet 1").Areas("Dlg1").DisplayObj.Dialog.Controls("FetchData").OnClickCode.Code = ...Some code...

 

The problem seems to be with the Areas(). Apparently it doesn't like "Dlg1", but I'm not sure what parameter I'm supposed to use.

 

How do I figure out what to use instead of "Dlg1"?

0 Kudos
Message 1 of 2
(5,409 Views)

Hi Benjamin,

 

In DIAdem 2012 you have to programmatically review and/or edit VIEW area names, something like this:

 

Set Sheet = View.ActiveSheet
FOR Each Area In Sheet.Areas
  i = i + 1
  Msg = Msg & "Index = " & i & vbTAB & ";   " & "Name = """ & Area.Name & """"
NEXT ' Area
MsgBox Msg

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(5,394 Views)