hcI

[Solved] Problem with declared variable

3 posts in this topic

#1 ·  Posted (edited)

Hello I'm having trouble with AutoIt :

Global $back_struct = "az"
MsgBox(0, "", IsDeclared($back_struct) )

And when I execute the script, the MsgBox return 0, like if the variable $back_struct wasn't declared..

Do someone know why ?

Edited by hcI
Solved

Share this post


Link to post
Share on other sites



Just because you don't use the appropriate syntax  :)

Global $back_struct = "az"
MsgBox(0, "", IsDeclared("back_struct") )

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Anh you're right !

Edited by hcI

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now