>>>>With Windows API function you can check available memory before the object is instantiated and after to calculate ~ memory size.
>>>
>>>That won't work
>>
>>Why? Can you please explain or suggest a different approach?
>
>
>Different approach - see my answer to Dmitry
>
>Why ? If vfp were to ask Windows (*) each time it needs a hundred bytes or so - it would operate slower
I see, we have sys(1016) for this - I didn't remember which sys.
I also understood now why that approach (checking Windows) would not work.
If it's not broken, fix it until it is.
My Blog