Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to clone an object?
Message
From
03/06/2009 15:39:40
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01403461
Message ID:
01403500
Views:
52
>SCATTER NAME would be the fastest way to create such object
>
>>Why is it necessary to clone an object is a fair question.
>>
>>I am writing a time and attendace app. It seems that the tables required to store the data have a more or less predictable structure, but their detail and totalizing fields will vary greatly because different places have very different rules.
>>
>>One way to handle this variety is to create detail tables where each detail or total field with a non zero value gets a record, but I think this would produce an enormous number of disk accesses which I would like to avoid. Another way may be to create objects in a data driven way to hold detail and totals in nicely named properties, and them save the properties in a single memo field in XML form or as a data array. In order to save time in object creation I would like to create a master object and then clone it each time.
>>
>>The original question I have is how to best handle the situation with flexibility and speed. Any suggestion will be appreciated.
>>
>>TIA,
>>
>>Alex

That's a good possibility.

Sergey, Naomi, Ed and Mike,

What do you think of the concept of storing "field values" as properties of an object that is stored in a memo field?

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform