Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strong typing
Message
From
15/09/2003 09:54:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Strong typing
Miscellaneous
Thread ID:
00828965
Message ID:
00828965
Views:
43
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...
Next
Reply
Map
View

Click here to load this message in the networking platform