Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory objects saved into cursors
Message
From
18/02/2019 14:00:09
 
 
To
18/02/2019 13:48:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01666501
Message ID:
01666515
Views:
43
>>The only issue is I can't effectively "delete" the reference in each array, but can only set it to .NULL. and leave it there until the last one is completed.
>
>Why not? ADEL() command will remove the row from the array. I would first release the object from the array and then use ADEL(). The row count is not changed; the rows are just 'moved' down one in the array so use DIMENSION command to remove the last row.

I'd be saving an index into the array for the related object so it could be directly referenced with a [index].method type reference, and that index would no longer be valid because once things are deleted they shift.

If I used iteration as your example shows, it would work, but it would also be slower.

The speed doesn't matter in this case as it will likely be at most a few hundred records, and perhaps 10 seconds of processing, and more typically dozens of records and a couple seconds processing max ... but it's the principle. :-)

I think I'll add support to Visual FreePro's design to allow this type of object to be saved in a table or cursor, with valid access existing only for the duration of the lifetime of the object.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform