Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.AddViewParameter still driving me nuts
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
.AddViewParameter still driving me nuts
Miscellaneous
Thread ID:
00265539
Message ID:
00265539
Views:
62
I thought I had this fixed but I dont unfortuantly. Ver4.2

I have BizObj sublcass defined as setrates_audit_list, and I set it up with a custom property called nRateYear. In the properties window it shows nRateYear listed for the setrates_audit_list container. Thru the builder, I set auto primary on, and created a data environment with one single view. The view is parameterized using vp_RateYear (yes I spelled it right this time :) ) In the data environment's PostInitHook I coded
This.AddViewParameter('vp_RateYear','This.nRateYear')

From the command window I run

SET PROC TO SETUP
DO SETPROCSANDLIBS
loObj = CREATEOBJECT('setrates_audit_list')

as soon as it hits the PostInitHook it errors with "This property is not found." I dont get it, I've taken 2 steps back and done it all right by the book and it's still not happy. What am I doing wrong?
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Next
Reply
Map
View

Click here to load this message in the networking platform