Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CmCursor.Addrule help
Message
From
29/10/2004 16:02:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
CmCursor.Addrule help
Miscellaneous
Thread ID:
00955943
Message ID:
00955943
Views:
53
I am writing a non-visual program in which I want to make use of the
custom rules that I've setup. This is what I have so far for the instantiation:

loCDE = CREATEOBJECT( 'cmDataEnvironmentCustom' )
loCDE.addcursor( 'BCSSettings', 'curBCSSettings' )
loBCSSettings = loCDE.getcursor( 'BCSSettings' )
loBCSSettings.addrule( 'RuleBCSSettings' )

The last line errors out since the method expects an object, I think.
But, when i try to instantiate an Rule object using something like:
loBCSRuleCustom = CREATEOBJECT( 'RuleBCSSettings' )
this can't work because the rule needs a Parent reference.
Can anyone give me some pointers?

Mike
Next
Reply
Map
View

Click here to load this message in the networking platform