PhilHibbs Posted April 29, 2010 Posted April 29, 2010 Global Const $_COORD = _ "short X;" & _ "short Y" Is this concatenation performed once when the declaration is evaluated, or every time it is used in the script?
JohnOne Posted April 29, 2010 Posted April 29, 2010 The way I understand it, it is calculated once at run time, and cannot be changed. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
trancexx Posted April 29, 2010 Posted April 29, 2010 You can test like this:Global Const $a = MsgBox(64,"", "OK?") ConsoleWrite($a & @CRLF) ConsoleWrite($a & @CRLF) ♡♡♡ . eMyvnE
PhilHibbs Posted April 29, 2010 Author Posted April 29, 2010 You can test like this:Global Const $a = MsgBox(64,"", "OK?") ConsoleWrite($a & @CRLF) ConsoleWrite($a & @CRLF) Thanks, that (plus another ConsoleWrite at the start) has confirmed that it is evaluated once before it is used.
trancexx Posted April 30, 2010 Posted April 30, 2010 Thanks, that (plus another ConsoleWrite at the start) has confirmed that it is evaluated once before it is used.No. It's evaluated once when the line with declaration is processed by the AutoIt. Not when used (it may never be used for that matter).One thing more.... No, no, I'm kidding. Nothing more. ♡♡♡ . eMyvnE
PhilHibbs Posted April 30, 2010 Author Posted April 30, 2010 No. It's evaluated once when the line with declaration is processed by the AutoIt. Not when used (it may never be used for that matter).That's what I meant. Before it is used, as against when it is used. Bad wordage from me.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now