Heute hab ich´s auch. Bei mir wird die Abfrage in Zeile 18 als "and" gewertet. Es müsste ja nur eins der beiden geprüft werden beim "or"....
Kann das jemand nachvollziehen?
AutoIt
#include <GUIConstantsEx.au3>
Local $hGUI = GUICreate("Example")
$input1 = GUICtrlCreateInput("",5,10)
$input2 = GUICtrlCreateInput("",5,30)
$testbtn = GUICtrlCreateButton("test",5,80)
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $testbtn
If GUICtrlRead($input1) = "" or GUICtrlRead($input2) = "" Then
MsgBox(0,"","leer")
Else
MsgBox(0,"","Inhalt: " & GUICtrlRead($input1) & " - " & GUICtrlRead($input2))
EndIf
EndSwitch
WEnd
Alles anzeigen