You can add custom property to a form. You can do that at design time through Form menu or at runtime using AddProperty() method of the form. After that you can reference it anywhere in the form as Thisform.myproperty.
>Hi evrybody,
>
>I would like to use a variable everywhere within a form only.
>
>However, local variables can be used and modified only within the procedure or function in which they are created, and cannot be accessed by lower-level programs.
>
>On the other hand Public variables can be accessed everywhere.
>
>What should I do then?
--sb--