>If I declare a variable in init event of a form
>this variable is not found in a button or other object of the form
>
>I have to declare it as public
>
>Is it really necessary to declare the variable as public ?
try adding a property to the form object with ADDPROPERTY(). It would then been scoped to the entire form and all of its methods. When the form loses scope, so does the property.
Greg Reichert