PhilHibbs Posted April 29, 2010 Share 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? Link to comment Share on other sites More sharing options...
JohnOne Posted April 29, 2010 Share 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. Link to comment Share on other sites More sharing options...
trancexx Posted April 29, 2010 Share Posted April 29, 2010 You can test like this:Global Const $a = MsgBox(64,"", "OK?") ConsoleWrite($a & @CRLF) ConsoleWrite($a & @CRLF) ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
PhilHibbs Posted April 29, 2010 Author Share 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. Link to comment Share on other sites More sharing options...
trancexx Posted April 30, 2010 Share 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 Link to comment Share on other sites More sharing options...
PhilHibbs Posted April 30, 2010 Author Share 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. Link to comment Share on other sites More sharing options...
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