Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mathematics knundrum
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00780672
Message ID:
00781145
Views:
52
Hi Bruce --

Yes, I like tables, too, to separate data from logic. And, a table approach would be perfectly appropriate in this situation. I suspect Marvin's data is in that form. He could either access the table directly with some application modification, or select into an array and use existing code.

>a) hit the size limit

You know, I hadn't thought of it, but a table-driven approach could be used to generate prime numbers, indefinitely ... <g>

Jay


>Hey, good work Jay! This is what I was doing, but your code is already refined better than mine.
>
>The only thing I might question is using an array - you might a) hit the size limit and b) want the results in a permanent table for one reason or another. I almost always choose tables for these situations, for such reasons, plus I like having all the table command available, generally they're more flexible. But that depend on needs, of course, and perhaps either one will do fine.
>
>Otherwise, very good work, and it's up to Marvin if there needs to be a STOP IF SOLUTION FOUND, or whether he wants to gather all possible solutions.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform