Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid (or not) gives me error 1768
Message
 
To
15/03/2006 18:02:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01104740
Message ID:
01104806
Views:
10
Hi Dragan,

IMHO, if Grid class contain any columns, then VFP has big problem with removing columns and add columns. The more informatios you can find in older thread between me and Fabio Lunardon.

MartinJ

>I have a form... that's old.
>
>But what's new is that I started getting error 1768 - "Cannot add this object to a Grid". First I thought it had something to do with my builder being run on it, and giving columns irregular names, and having nonstandard headerheight where half of the headers wrap, or having no textbox in column12 but just a commandbutton.
>
>I'm running the form via createobject() - and that's the line where I get this.
>
>So I started a new form with the same name in the same classlib (after deleting the old one - backed up first!), dropped a fresh grid on it, and got the same result. The same form class, with one or more grids of the same class works fine in dozen other cases, even where I have four such grids on a page of a pageframe. I.e. everything else works.
>
>Now I'm getting that error even when I try to run that form without any grid. Even after quitting VFP.
>
>I've created a new form with a different name, and so far so good - no error. Added the grid and pasted the code, no error. Copied and pasted the rest of the records, no error.
>
>Idus martiae? I've lost two hours over this. Just want to know if anyone had such a weird day recently - misery likes company :).
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform