Hi Jos,
Please accept my words of appreciation. Appreciation because you look forward for perfection.
'You are too good'
Thanks for the code and I'll take care in future.
Nice to be with you in this forum.
Aashish
>Aashish,
>
>There is no need to use macro substitution in the APPEND command. Its better to use name expression by enclosing PicPath in brackets. Its faster and VFP recommended way. I would also double-check for file existence rather than EMPTY(). i.e.
>
>
>PicPath=Getpict()
>
>If File(PicPath)
>
> Select Student
> Append General Student.photo From (PicPath)
>
>Endif
>
>
>
>
>>Create a table with general field.
>>
>>Select Student
>>PicPath=Getpict()
>>If !Empty(PicPath)
>> Append General Student.photo From &PicPath
>>Endif
>>