>Another stupid one :)
>
>In Visual dBase I used to write a piece of code and use
>it as generic method that I would call from any control,
>or, to be more technical, I could attach it as a method
>to any control. Is there any similar technique in VFP?
>And also, in VDB there was a pretty powerful tool called
>Code Block, that looked very much like in-line functions
>in C++ :
> Define Class MyText of Text ;
> Properties ;
> Name = "MyTextBox" ;
> OnChange {;This.Value = Form.Text}
>
>Is there something similir in VFP?
Suggestions by Nick and Dave are fine. Also if it is some code you use over and over again, it might be best to put it as a user defined function in your main prg file.