Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
1001 Things, xFrmMgr class, how do I use the parameters?
Message
From
19/11/2002 12:40:52
 
 
To
19/11/2002 11:39:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00724352
Message ID:
00724389
Views:
19
Margaret

Taken From the help
SET CLASSLIB TO genclass, fmgrtest ADDITIVE

RELEASE goFrmMgr

PUBLIC goFrmMgr

*** Create the Form Manager Object

goFrmMgr = newobject('xFrmMgr', 'formmgr.prg', NULL)

*** Now run some forms as both Class and SCX

*** With and Without Toolbars. 

*** Note that the Class-based forms require a logical .T. as parameter 2

goFrmMgr.Doform('btnbarfm')

goFrmMgr.Doform('btnbarfm',.T.)

goFrmMgr.Doform('cbobarfm')

goFrmMgr.Doform('cbobarfm',.T.)

goFrmMgr.Doform('notbarfm')

goFrmMgr.Doform('notbarfm',.T.)
HTH
>I am building the xFrmMgr class from "1001 Things You Wanted to Know About VFP" chapter 10.4 into a project but I am not sure how to use the parameters part of this class. I have an lparameters statement in the init of my form but when xFrmMgr calls the form the form crashes with "Data Type Mismatch" error. Should I not be using lparameter statement in my form? How does the form grab the parameters that are held by xFrmMgr?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform