Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View parameters going out of scope
Message
From
01/04/1999 14:18:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
View parameters going out of scope
Miscellaneous
Thread ID:
00204389
Message ID:
00204389
Views:
48
Hi all,
I have a bizobj based on kbizobj that has a pageframe based on cpageframe on it. In the bizobj's postinithook method has the following code:

THIS.AddViewParameter('vp_NoteType','This.cnotetype')

THIS.AddViewParameter('vp_LastNoteDate', ;
"IIF(this.lreminders, DTOC(DATE()), '01/01/2100')")

THIS.AddViewParameter('vp_ReadStatus', ;
"IIF(this.lreminders, 'N', '_')")

The view is expecting these three parameters. When I run the app, I get the VFP box asking me to enter the parameters. I traced through the program and found that when kbizobj executes - lnRetVal=This.obehavior.requery() - the view parameter variables go out of scope. When the data behavior object (ctablebehavior) returns to the kbizobj.requery(), the come back into scope.

What am I missing?

Thanks ----P.S. I AM going to one of Kevin's classes, so maybe some of my dumb questions will stop in the future. (Probably not, but it sounded good) :)
Next
Reply
Map
View

Click here to load this message in the networking platform