Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Class and custom header replacement error
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Grid Class and custom header replacement error
Miscellaneous
Thread ID:
00817621
Message ID:
00817621
Views:
66
Hi all

I get an error in the AddObject call stating that it is Object Name is Invalid.

In the property sheet cHeaderClass contains ihdrGridHeader. ihdrGridHeader is defined in a seperate prg included in the project.
FOR EACH oColumn IN THIS.COLUMNS
	lccc = oColumn.CURRENTCONTROL

	*** replace the header with custom header class
	*** created in code
	IF !EMPTY(THIS.cHeaderClass)
		oColumn.REMOVEOBJECT("hdr" + SUBSTR(oColumn.&lccc..NAME, 4))
		oColumn.ADDOBJECT("hdr" + SUBSTR(oColumn.&lccc..NAME, 4), ;
			THIS.cHeaderClass)
	ENDIF
...
ENDFOR
Please advise
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform