Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Copying a grid to a different container
Message
From
18/08/2011 06:05:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01521187
Message ID:
01521222
Views:
125
>Probably something obvious, but I'm not getting it.
>
>I have defined a column class and its header class in a prg file. In that class definition, I set the HeaderClass property, and the HeaderClassLibrary property to the full path to the prg file.
>
>In the form designer, I instance a grid on a page and set the grid's MemberClass property to the column class in the prg file, and the MemberClassLibrary property to the full path to the prg file.
>
>When I run the form, the grid works normally.
>
>Back in the form designer, I select the grid > right click > copy, go to a different page, and right click and paste. I get an error message saying that the header class definition is not found. If I look at the properties of the columns in the grid, I can see that the HeaderClass and HeaderClassLibrary are correct.
>
>Why does this happen? Is there a way to copy a grid set up in the form designer to another container?

Few things to try:
- change the path to the header's prg to be a relative one (the one in the vcx is relative internally, no matter how it looks in the PEM window)
- add the folder with these prgs to the path while you copy
- set procedure to all the prgs where your classes are defined while you copy

HTH - I've found that some intellisense things work (which usually wouldn't) when you have set procedure to the prgs where your definitions are. May help in your case.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform