We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Is a Var Being Used in Puzzles

Home Forums Puzzles Is a Var Being Used in Puzzles

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44415
    jdhutchinson
    Customer

    Hi, 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?)

    #44611
    xeon
    Customer

    Hey 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.com

    #44643
    jdhutchinson
    Customer

    Hey 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.

    #45044
    xeon
    Customer

    I 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.