You can hardly belieive that but
>Some other approaches would work too :
>-Unscramble in myprocs.prg
>set procedure to myprocs.prg additive
doesn't work
>-Unscramble is a form method
>controlsource = '(thisform.Unscramble(...
yes, it does
>-Unscramble is in a custom class
>controlsource = '(thisform.myCustom.Unscramble(...
didn't check , but probably will.
>
>
>>Cetin,
>>
>>Thanks for the hint. I made it work but under one strange constraint. Function unscramble must be a separate unscramble.prg file. All other approaches don't work ( having unscramble in startup main.prg for the project or utilities.prg with 'set procedure to utilities.prg' in main.prg )
>>Complaint "file unscramble.prg' does not exist" and even when suspended show method is scrambled :) when I simplified it to
>>
>>.grid1.column1.CONTROLSOURCE = '(unscramble( mytable.descript )) '
>>
>>>Add parentheses and quotes.
>>>
>>>.grid1.column1.CONTROLSOURCE = ;
>>> '( unscramble('+ THISFORM.booktable+'.descript ) )'
>>>
Cetin