Constants

T

Terry

I need to have a number of values made available during the whole session a
user is using a front-end after they have made some choices in a startup
form.

What would be the best way to do this?

Hide the startup form so the choices can be referenced from it?

Create global Public Variables and hold the user choices in them?

or is there some other way?

Regards
 
K

Keith

Using Public variables would be more efficient. Leaving
a hidden form open uses more resources and addressing it
is slower - not that it should be noticed on a modern PC,
but if you reference the variable in a code loop then the
extra time to read the value is multiplied by the number
of loop executions.
 
J

John Mishefske

Keith said:
Using Public variables would be more efficient. Leaving
a hidden form open uses more resources and addressing it
is slower - not that it should be noticed on a modern PC,
but if you reference the variable in a code loop then the
extra time to read the value is multiplied by the number
of loop executions.

Just be aware that an unhandled error will clear Public variables
where a Class module (like a form) will protect those variables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top