You can use custom form property instead of variable. You can eaither create it at design time thru Form -> New Property menu or add at runtime using AddProperty method of the form.
>Hallo all
>If I want to define a variable that I can use from any methods in a form, how do I do that in the best way? I can not find any command to do that.
>If I define it as PUBLIC, I can reach it in the whole application, and if I define it as LOCAL, I can´t use it in all methods in the form.
>
>My wish is to make a variable that is isolated in one form, but I want to write and read the value from any method in the form.
>
>I hope you understand what I mean.
>Thank you in advace
>/Kjell
--sb--