// Script function: Input dialogs for confirming or manually entering your own number // Unless named starting with GlobalSino, EM, My, Self, the function commands are defined //by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html TagGroup GlobalSino, EMItems GlobalSino = DLGCreateDialog( "Please confirm or enter your own numbers", EMItems ) TagGroup MyNumber1, MyNumber2, MyNumber3 EMItems.DLGAddElement( DLGCreateRealField( "My first number :", MyNumber1, 100, 8, 3 ) ) EMItems.DLGAddElement( DLGCreateRealField( "My second number :", MyNumber2, 200, 8, 5 ) ) EMItems.DLGAddElement( DLGCreateRealField( "My third number :", MyNumber3, 300, 8, 8 ) ) if ( !Alloc( UIframe ).Init( GlobalSino ).Pose() ) exit (0) number a = MyNumber3.DLGGetValue() Result( "My first number is " + MyNumber1.DLGGetValue() + "\n" ) Result( "My second number is " + MyNumber2.DLGGetValue() + "\n" ) Result( "My third number is " + a + "\n" )