Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CASE permutations
Message
From
08/09/2007 12:05:31
 
 
To
08/09/2007 09:45:52
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01253160
Message ID:
01253199
Views:
24
These are some really good points and I have added your and Cetin's messages to my favorite folders for future reference. I hope Jay (Renoir) is making note of your thoughts...




>>
>>Yes, this is good. His case was somewhat special. Rethinking about it he may simply have the
>>empty tables serving as structures and his code would be:
>>
>>  PROCEDURE GetCursor
>>	PARAMETERS tcMessageType, tcCursorType, tcCursorName
>>        Dodefault() && no Parameter fwd ?? - yes a bit odd but may be
>>        select * from (m.tcMessageType + "_" + m.tcCursorType) ;
>>          where .f. ;
>>          into cursor (m.tcCursorName) readwrite
>>  ENDPROC
>>
>
>Yupp, I had visualized a simple fieldlist in each of the cursor classes and the base class has the "logic" to make a create cursor call. Using empty tables is even easier, but makes it harder to keep track of the whole project via source safe<g>. And for reporting / mailable files we often have identical field lists for personal info and differing lists for specific detail info. Here the inheritance helps, although you could get the same effect with joining the "person" fields into the empty cursor. But too much speculation on not enough info from the OP <bg>.
>
>thomas
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform