Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strong typing
Message
De
15/09/2003 09:54:58
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Strong typing
Divers
Thread ID:
00828965
Message ID:
00828965
Vues:
44
Hi,
I am new to "strong typing" of vfp7. May I know what wrong with this code?
	PROCEDURE INIT(toHostObject AS Object) AS Boolean
		IF IsObject(toHostObject)
			THIS.oHostObject = toHostObject
		ENDIF
		
		WITH THIS
			.oWarningCollection = CREATEOBJECT(.cCollectionClass)
			.oBrokenRuleCollection = CREATEOBJECT(.cCollectionClass)
			.oRequiredFieldCollection = CREATEOBJECT(.cCollectionClass)
			.oEmptyRequiredFieldCollection = CREATEOBJECT(.cCollectionClass)
		ENDWITH
	ENDPROC
I get error

Statement:IF IsObject(toHostObject)
Message: No PARAMETER statement is found.Error: 36

Any ideas?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform