|DIAdem 2015 Help|
|DIAdem 2017 Help|
|DIAdem 2018 Help|
|DIAdem 2019 Help|
|DIAdem 2020 Help|
Use this variable to transfer the settings in user dialog boxes to DIAdem. Complete the following steps to transfer a selection in a selection field to DIAdem:
Select the DIAdem SCRIPT panel.
Select Edit»Create Dialog Box.
Click the OK and Cancel control group in the Catalog window and click and drag the group into the dialog box.
Click the ComboBox control on the Controls bar.
Drag open the control in the dialog box.
Click the column to the right of ListItems in the Properties tab. The ComboBox must be selected.
The dialog editor opens the ListItems dialog box.
Click Add twice and enter Value0 and Value1 as the names.
Click the column to the right of the Variable field on the Properties tab.
|Note If you enter a variable here which is unknown to DIAdem, DIAdem prompts you to add information on the type, storage mode, dimension, and the reset behavior of this variable. During the dialog box runtime, the variable you select here must conform to the variable definition in DIAdem. Select Edit»Variables and open the DIAdem Variables dialog box to display the properties of the registered variable, to enter new variables, and to delete existing variables.
Refer to the page on Variable Types for Controls for a list of the variable types that you can assign to the controls.
Select File»Save As and save the file as Test.sud.
Close the dialog editor and switch to DIAdem.
Select File»New»VBS Script to create a new script.
Enter or copy the following text into the script editor:
L1 = 1 'Set the default value for the variable L1 Call SUDDlgShow("Dlg1","Test.sud") 'Shows the dialog Call MsgBoxDisp("Selected value is " & L1) 'Shows the selected value of L1
Select Script»Run VBS Script to start the script.
Select an entry from the selection field.
Close the user dialog box with OK or Cancel.
If you close the user dialog box by clicking OK, the user dialog box returns the value L1, which you selected in the selection box, to the calling script. If you close the user dialog box by clicking Cancel, the user dialog box resets the L1 value to the original value.
Analyzing and Displaying Channels Section by Section | Checking Dialog Box Entries | Dynamic User Dialog Box | Translating User Dialog Boxes | User Dialog Box for Entering Text and Numbers | User Dialog Box for Sequence Control | User Dialog Box in DIAdem VIEW | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | User Dialog Box with Changing Background Color | User Dialog Box with Curve Preview | User Dialog Box with Extended Table | User Dialog Box with Internet Explorer | User Dialog Box with Scalable Table | User Dialog Box with Selection Lists | User Dialog Box with Selection Lists | User Dialog Box with Subdialog Boxes | User Dialog Box with Tables | User Dialog Box with Tree | Wizard for Tolerance Evaluation