skijve Posted January 3, 2024 Posted January 3, 2024 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
Nine Posted January 3, 2024 Posted January 3, 2024 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy
MattyD Posted January 3, 2024 Posted January 3, 2024 (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, 2024 by MattyD
skijve Posted January 3, 2024 Author Posted January 3, 2024 Indeed, isdeclared works on "mcontrols" It wil be enought for my needs 🙂 Thx for the help
MattyD Posted January 3, 2024 Posted January 3, 2024 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
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