- This topic has 3 replies, 2 voices, and was last updated 4 years, 4 months ago by
xeon.
-
AuthorPosts
-
2021-09-09 at 1:04 am #44415
jdhutchinsonCustomerHi, is there a way to find out if a var is in use or not, and whether I can delete it?
It’s my own fault for maybe having a few too many plus many procedures…
Maybe just a purge variables option, or being able to go to instances of it. Or, if deleting one, to mention how many instances of it there are.
Does Soft8Soft develop much the background working of puzzles? (the underlying functionality?)
2021-09-14 at 5:19 am #44611
xeonCustomerHey there,
So you have lots of variables and I am guessing you mean that the list of variables in App Manager when is not what you are looking for and what you are really looking for is a list of variables that are in use during execution…either for debugging or not…or for part of the logic in your code.I end up with 100s of variables…I am still upset that variables are global but it is what it is.
So a method you can use to keep track of variables is to create lists or dictionaries. Each time you instantiate a variable, add it to a variable list or dictionary…and then you can search the variable and see if you are using it. If you want to store it with an associated value…stick it in a dictionary…that way you can store X and its value 10…and then search variable and associated value.
Extra work in writing code but luckily you can create a procedure to do this.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-09-14 at 3:25 pm #44643
jdhutchinsonCustomerHey Xeon,
It was more being able to know whether or not I have laid down a variable on the actual puzzles ‘board’, shall we say. I have created some for testing purposes (often unsuccessfully), although i guess that’s my fault for perhaps not having a naming convention.
With procedures you can right click and ‘go’ to where it’s executed. the same would be good with variables.
Although now I think about it, I could use the exec script puzzles to see if something is in that VARS namespace. I presume if I haven’t set it to anything via a puzzles, it will be false.
2021-09-22 at 5:19 pm #45044
xeonCustomerI think having more ability to locate the variables use…like the go to procedure function would be great. In the event the varialbe is used all over…it would be great to either highlight them or provide a list you can scroll through to find them.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com -
AuthorPosts
- You must be logged in to reply to this topic.
