Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 2072 strikes again
Message
From
02/08/2006 22:09:28
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/08/2006 20:09:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142562
Message ID:
01142570
Views:
10
>Maybe something like this?
>
>*-- do not define the controlsource of your grid in the form properties

Tried that now - actually, the grid is built in its .init anyway, so having a recordsource set as a PEM didn't mean anything.

Too bad, didn't work.

>*-- something like this in your listbox page1 process
>
>>1. remove the controlsource of your grid on page 2 if it exists
>>2. a record from the table is loaded into a couple of objects, to be shown on page1
>>3. the cursor for the grid is zapped
>>4. a bunch of records is inserted into the cursor
>>5. set the controlsource of your grid on page 2 after the cursor exists

I think I tried something similar already, but the grid rebuilt itself (and I have a checkbox in column5, and field5 is a string, so this blows right away). I know it shouldn't rebuild, but it did.

Anyway, Jim's suggestion, combined with kill/recreate grid seems to work.

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