Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CREATEOBJECT vs DO FORM.. NAME..
Message
 
 
To
16/04/2007 02:24:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01215967
Message ID:
01216177
Views:
18
>Naomi,
>
>I do have an array that holds object references to each form that opens.
>
>It works quite well I must say, but not when I issue
>
>
>ofrmCustomerDataEntry = CREATEOBJECT( "frmCustomerDataEntry" )
>ofrmCustomerDataEntry.Show()
>
>
>The above will just see the form appear and disappear right away.
>
>It works well if I use my 'old' way of:
>
>
>DO FORM frmCustomerDataEntry NAME ofrmCustomerDataEntry
>
>

If you have an array, you should store the reference in the array, e.g.
lnI = alen(oFormMgr.aForms,1) + 1
oFormMgr.aForms[lnI] = ofrmCustomerDataEntry
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform