Hi!
Thanks that worked.
Sarosh
>VFP seems to choke if expressions for ControlSource gets too complex. Just how complex is too complex, I've never figured out.
>
>One way to get around it is to use a UDF:
ThisForm.TxtFileName.ControlSource = "MyUDF(filename)"
>
>FUNCTION MyUDF
>LPARAMETERS tcFileName
>
>RETURN juststem(tcfilename) + '.'+ justext(tcfilename)