Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi.

During the course of the scripts throughout a session, I have quite a number of variables set to parse values between tables etc.

Being the kind of programmer I am, I prefer to clean up after myself and remove and non-essential debris. Although variables wouldnt consume much RAM (especially given how much RAM computers have these days), but is there any way (or need to) remove a variable once it's job is done? Simple housekeeping really.

Cheers,

Greg

Script variables - i.e. variables prefixed by a single $ and declared during script runtime - are automatically cleared when the script terminates.

  • Author

Hi Comment,

Thanks for your response.

No only was I not clear, but realised what my question really came down to.

I meant to be discussing global variables - I failed to mention that. I would pass them between different modules in different scripts so would need to be global to do the job.

Is there anyway to clear global variables? Not just empty the contents, but remove them from memory?

Cheers,

Greg

Any variable that is set to empty ceases to exist. However, the purpose of global variables is to persist - perhaps you should consider script parameter and script result for exchanging values between scripts.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.