Transferring User Dialog Box Entries to DIAdem

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 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:

  1. Select the DIAdem SCRIPT panel.

  1. Select Edit»Create Dialog Box.

  2. Select View»Catalog.

  3. Click the OK and Cancel control group in the Catalog window and click and drag the group into the dialog box.

  4. Click the ComboBox control on the Controls bar. 

  5. Drag open the control in the dialog box.

  6. Click the column to the right of ListItems in the Properties tab. The ComboBox must be selected.

  7. The dialog editor opens the ListItems dialog box.

  8. Click Add twice and enter Value0 and Value1 as the names.

  9. Click OK.

  10. Click the column to the right of the Variable field on the Properties tab.

  11. Enter L1.

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.
  1. Select File»Save As and save the file as Test.sud.

  2. Close the dialog editor and switch to DIAdem.

  3. Select File»New»VBS Script to create a new script.

  4. 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
  5. Select Script»Run VBS Script to start the script.

  6. Select an entry from the selection field.

  7. 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.

Examples

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

WAS THIS ARTICLE HELPFUL?

Not Helpful