Hi Autoit Community,
Wie kann man prüfen ob eine Variable exestier?
Schauen ob Variable exestiert!
-
- [ offen ]
-
Chris -
3. November 2008 um 20:15 -
Geschlossen -
Erledigt
-
-
- Offizieller Beitrag
Beispiel (aus der Hilfedatei):
[autoit]
[/autoit][autoit][/autoit][autoit]
If Not IsDeclared ("a") then
MsgBox(0,"", "$a is NOT declared") ; $a has never been assigned
EndIf$a=1
[/autoit][autoit][/autoit][autoit]If IsDeclared ("a") then
[/autoit]
MsgBox(0,"", "$a IS declared" ) ; due to previous $a=1 assignment
EndIf -
THX, Odcar