Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmtically adding Rule object
Message
From
18/11/2004 17:13:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Programmtically adding Rule object
Miscellaneous
Thread ID:
00962845
Message ID:
00962845
Views:
33
I am playing with the code necessary to add a rule object to a cursor object
programmatically, and am stuck. This is the code I have:
FUNCTION AddRuleToCursor( pcCursorObject )
LOCAL lcRuleName as String, lcRuleObject as String 

lcRuleName =  'rule' + ALLTRIM( pcCursorObject.cSource ) 
lcRuleObjectName = 'oRule' + ALLTRIM( pcCursorObject.cSource ) 
If Not Pemstatus(pcCursorObject, lcRuleName , 5)
	With pcCursorObject
		.AddNewObject( lcRuleObjectName , lcRuleName )
		FOR EACH loObject IN pcCursorObject.Controls
			IF loObject.Name = UPPER( lcRuleObjectName )
			   .AddRule( loObject )
			ENDIF 
		ENDFOR 
	Endwith
Endif
I'm having difficulty figuring out how to get the oRule object reference
that I need for the .AddRule( oRule )
Any help would be appreciated.

Mike
Reply
Map
View

Click here to load this message in the networking platform