>I create a grid object and using the column control
>
>column1.controlsource="iif(my_field = 1,'One','Not one')"
>it can show the 'One' and 'Not one' in the column. But
>
>column1.controlsource="myfun(my_field)"
>
>function myfun
>paramerer par
>if par = 1
> rtn="One"
>else
> rtn="Not one"
>return rtn
>
>there is not any data show in the grid!
>What's wrong?
>Please Help Me!
>Thank You!
Where are you defining MyFun?
You might want to make MyFun a custom form property.
Erik Moore
Clientelligence