>Is it define the function in the define class?
>
>define class myform as form
>
> function myfun
> return
>enddefine
>
>But the resule is the same!
If your form is a class, then this is how you would define a custom method, yes.
Did you try this and change the controlsource code to THISFORM.MyFunction(myField)?
Erik Moore
Clientelligence