Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmtically adding Rule object
Message
De
18/11/2004 17:13:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Programmtically adding Rule object
Divers
Thread ID:
00962845
Message ID:
00962845
Vues:
32
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
Répondre
Fil
Voir

Click here to load this message in the networking platform