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 13:02:38
 
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:
01521252
Views:
96
>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?
>
>Thanks,
>Jim

If I'm not mistaken, form designer works classes defined in VCX not PRG. You can get it to work by hacking the SCX file, but all editing tends to assume classes in VCX (thus the complaint when you try to copy/paste into different form -- you're probably going to get the same error if you copy/paste into the same form).
Previous
Reply
Map
View

Click here to load this message in the networking platform