skijve Posted January 3 Share Posted January 3 Hello guys, It seems that expression like IsDeclared("mControls.Combo") Always return false even if the variable is created and initialized. Is there some trick to test the existance of such variables ? Regards, Eva Link to comment Share on other sites More sharing options...
Nine Posted January 3 Share Posted January 3 Not as is. But there maybe some other ways depending on the context (object, struct, etc). Please provide a runable script so we do not have to guess what the matter is... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
MattyD Posted January 3 Share Posted January 3 (edited) Just going from memory on this - but I think this was a funny one when dealing with objects. IsDeclared probably works as expected on the root i.e. "mcontrols" but not on "mcontrols.combo". this may help? - (haven't properly looked at it to be fair) or mabe this? Edited January 3 by MattyD Link to comment Share on other sites More sharing options...
skijve Posted January 3 Author Share Posted January 3 Indeed, isdeclared works on "mcontrols" It wil be enought for my needs 🙂 Thx for the help Link to comment Share on other sites More sharing options...
MattyD Posted January 3 Share Posted January 3 All good mate. FWIW if you want to just check the object was successfully created, I usually do an IsObj() on it - but whatever works hey 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