This statement works in VFP 2.6, but i get a "Group By Clause is missing or invalid" error when it is run in VFP 9:
sele lctable as table, lccond as condition, lcsource as grsource, ;
iif(type(lcsource) = "C", padr(alltrim(&lcsource),14), ltrim(trans(&lcsource, "$$$,$$$,$$$.99"))) as...