11-20-2013 08:37 PM
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"?
11-21-2013 02:35 PM
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