DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

SUD-Dialog: EditBox: Whats Wrong ?

Below ist the code of an sub-dialog.

It will be call from a maindialog
My question: What is wrong in the editbox objekt?
How can a check integer values (ie. ChnNummbers) in editboxes?
Why does not the sript "autosequenz" start ?

Thanks for help !
Answers also in german possible
'###########################################################

' Code of the Dialog
'(Declarations)
'End of (Declarations)

Sub Abbrechen_EventClick() 'button cancel
Dim This : Set This = Abbrechen
Dialog.Cancel
End Sub

Sub edEndKanal_EventInitialize() 'editbox
Dim This : Set This = edEndKanal
This.Text = GlobUsedChn
End Sub

Sub edStartKanal_EventInitialize() 'editbox
Dim This : Set This = edStartK
anal
This.Text = 1
End Sub

Sub OK_EventClick() 'button ok
Dim This : Set This = OK

If (edStartKanal.Text < 1) Or (edStartKanal.Text > edEndKanal.text) Then
Call MsgBoxDisp("Ungültige Werte")
End If

If (EdEndKanal.Text > GlobUsedChn) Or (edEndKanal.Text < edStartKanal.Text) Then
Call MsgBoxDisp("Ungültige Werte")
Else

KommChnStart_ = edStartKanal.Text 'load to a UserVar
KommChnEnd_ = edEndKanal.Text
Call scriptstart (AutoActpath & "autosequenz") 'If values ok do this script !
Dialog.Cancel 'and close subdialog
End if
End Sub
'###########################################################################
0 Kudos
Message 1 of 2
(3,906 Views)
I have answered myself
There is a diadem-command "Call ChnGet()".....
It solves all my problems 🙂
0 Kudos
Message 2 of 2
(3,906 Views)