Monthly Archives: March 2010

alternatives to public variables

use of public variable is not considered a good idea.
for reasons you can visit everybody
tells me that public variables are not good practice -
why?

i am trying to document why public variables are used by
developers and what are the safer alternatives.

for globally available variables.

create a custom class to hold the global variables as
properties. use the assign event to check if the
current procedure is allowed to update the value
code
example

making values available to forms

pass them as parameters
do form form2 with lnparameter1,lnparameter2
for each of the… Continue reading