Whats wrong with a if .. endif around the scan? Or placing it into an other procedure and call it only of needed?
>Hi
>
>I have long code that contain also 'scan..endscan'.
>
>The user can run the code with two options, one option is without this scan.
>So, in that case can I ask VFP to cosider this two lines as comment or I have to copy all the code to other method (toremove the scan..) and to remember to update each change?
>
>Tnx
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]