March 30, 200619 yr Hi everyone, I have a question about script variables. I fell in love with them when I first learned about them, but I have a problem with global script variables. Are they permanent to a database once created? I know that a local variable only exists while the script is running and that global variables can stretch across sub scripts. I liked this until I noticed that they always seem to have a value in them unless you clear them. Even if I clear them, are they taking up space in my solution. I am moving away fromt the globals but the ones I have used in the past still exist, don't they? Can anyone shed some light on this. Thanks
March 30, 200619 yr Global variables persist until you close the file in which you defined them. They take up very little memory, so I wouldn't worry about using them. If you want a "cleaner" approach, try passing variables to subscripts via script parameters.
Create an account or sign in to comment