Passing data between forms: tag is ok?

  • Thread starter Thread starter Adam Honek
  • Start date Start date
A

Adam Honek

I want to pass one little piece of data between forms in the same thread.

May I still safely use the .tag property of each form to do so?

It's only an integer value I need to pass and would rather not use global
variables
unless I have to.

Thanks,
Adam
 
Adam Honek said:
I want to pass one little piece of data between forms in the same thread.

May I still safely use the .tag property of each form to do so?

Yes, you can do that. However, maybe adding typed properties with
meaningful names to the form instead of using the generic 'Tag' property is
the preferrable choice.
 
why you so scared of global variables?

i mean; this isn't witchcraft just because some renob says you
shouldn't do it-- did you test it and had unacceptable performance with
global variables??
 
Back
Top