Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comment By condition
Message
From
19/06/2009 05:44:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01406827
Message ID:
01407096
Views:
41
The best!
Tnx
>>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
>
>Take the code inside the scan/endscan and move it to a procedure, then in your main code you can;
>
>
>IF I_Need_The_Scan
>   SCAN
>          MyProcedure()
>   ENDSCAN
>ELSE
>   MyProcedure()
>ENDIF
>
Thank you
Chaim
Previous
Reply
Map
View

Click here to load this message in the networking platform