paulmcdonnell
Ready to Help
- Local time
- Today, 04:23
- Joined
- Apr 11, 2001
- Messages
- 167
**- - - - To late or to Early Bind - - - -**
Hi guys,
Here's one query that I've just never got round to asking but I do some much Automation now that I doing a lot of repetition.
If I'm running a lot of automation code which uses a great many variables (Hundred or so).
Which is better practice to open and delare all my variables throughout the program on startup and jsut keep re allocating them as they're needed
Or
To declare and release at the time of use when the event or function requires.
Is it a trade of between speed and memory useage or what.
I do alot of this now and curently I'm declaring and releasing all the way but it would seem easier if all i was doing was resetting already available variables
I hope that this makes sense
Cheers
Paul

Hi guys,
Here's one query that I've just never got round to asking but I do some much Automation now that I doing a lot of repetition.
If I'm running a lot of automation code which uses a great many variables (Hundred or so).
Which is better practice to open and delare all my variables throughout the program on startup and jsut keep re allocating them as they're needed
Or
To declare and release at the time of use when the event or function requires.
Is it a trade of between speed and memory useage or what.
I do alot of this now and curently I'm declaring and releasing all the way but it would seem easier if all i was doing was resetting already available variables
I hope that this makes sense
Cheers
Paul