Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CASE permutations
Message
 
 
To
07/09/2007 23:10:10
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01253160
Message ID:
01253168
Views:
18
<snip>
>>but not by much. The main thing that's going to simplify it is figuring out whats the same in each "* Do Something" and programing around that.
>
>Interesting. Ok, each CASE will create cursors with different structures, then return the alias for that particular cursor to the calling program to be populated.

You can avoid DO CASE altogether if you make your code data driven by storing info reqired by 'Do Something' in each case in a table with 'MessageType and CursorType' as key fields. You wouldn't have to modify code at all to add new types.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform