Hi Fabio,
>in order to improve the speed of opening of the form
>in VFP8 ? This is the only meaningful increase of speed on VFP8.
Try out object creation, but not into a single var but into
an array or into different object handles, like
function createst(tcObjClass, tnOften)
local laObj[m.tnOften], lnRun, lnTime1, lnTime2, lnTime3
lnTime1 = seconds()
for lnRun = 1 to m.tnOften
laObj[m.lnRun] = createobject(m.tcObjClass)
next
lnTime2 = seconds()
laObj = ,f,
lnTime3 = seconds()
vfp8 runs ***a lot*** better, if there are already quite a few
objects instantiated. Think of complex business apps, where each form
will genereate a couple of hundred controls: screen controls on different
pages, business objects, data objects and so on, and then imagine the app
running with a few of those non modal form open.
Another dimension to measure "scalability" in.
Personally I think the performance behaviour is now much better balanced,
even if vfp8 is slower in object creation whith no objects previously
created (as compared to vfp6).
my 0.02 EUR
thomas