Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many CASEs in DO CASE?
Message
From
01/06/2006 19:25:41
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01126584
Message ID:
01126639
Views:
27
This message has been marked as a message which has helped to the initial question of the thread.
>>>>
>>>>Dmitry,
>>>>I said "old", you use VFP9
>>>>HELP:
>>>>Maximum size of compiled program modules - Limited by available memory
>>>>
>>>>So I think you couldn't bother about this, but I am veeeery lazy too and I think programing 100 CASEs is more complicated and difficult to maintain then EXECSCRIPT(SomeField) ...
>>>
>>>I decided not to put my code into a memo field. I am concerned about memo field corruption. So I will probably do something like
>>>
>>>
>>>DO &cProcName.
>>>
>>>
>>>and create a separate procedure for each "CASE". Or maybe combine some CASEs into one procedure for convenience.
>>
>>I am not sure where you will save these procs (If you consider MEMO fields), but iif this is a static table that never change, no problems with MEMO coruption, since you only read from it.
>
>I am thinking about saving the procedures in different .PRG files.

That is a good idea. Each case can be tested independently, multiple coders can assist you. Each piece will be compiled once. Each piece can grow as large as needed. Little chance of reaching any limits.
Previous
Reply
Map
View

Click here to load this message in the networking platform