Yeah, I was wondering if that would be allowed. Thanks for letting me know so quickly.
My immediate need was to get the value of a variable at runtime given its name as a string.
There are ways to retrieve arrays of all the local, global, and intermediate scope variables through a debug library, so I could retrieve those arrays and do a lookup for the specific variable name. I just didn’t know if there was a more direct way to do this for variables. Do you know if such a beast already exists. I’m sure someone’s skinned this cat before. Otherwise, how would the various Corona IDEs allow variables to be evaluated and watched?
I only need to use it in a debug context during development. I would not execute such logic in production code.
John
[import]uid: 75226 topic_id: 34882 reply_id: 138623[/import]