Grids are tetchy critters and prone to blowing up with C5 errors, especially if 
you requery the datasource while its still associated with the object. In 
general, the tricks have been to temporarily reset it to nothing, rebuild your 
underlying datasource, and then reestablish the relationship to the grid 
object. Mike's save and restore source methods will probably go a long way to 
curing your grid ills.

--

rk


-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Kurt Wendt
Sent: Tuesday, February 02, 2016 10:33 AM
To: [email protected]
Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of 
ListBoxes)

Hey Mike - thanks so much for pointing me to your code downloads. I haven't 
gotten to the point of re-querying the grid - but, I WILL have to do exactly 
that - and at that point I will look at your code.

I'm actually having a Strange problem with this Grid now - in that it will at 
times crash the whole VFP application when I am testing out that Grid. But, I 
may have to post this in a new Thread. I'm trying some stuff out now - before I 
really post about this issue. But, it's a game stopper - since I can't possibly 
release this screen to the users if it crashes at times due to users 
interacting with this Grid!

So - more on this shortly...

-K-

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Tuesday, February 02, 2016 10:29 AM
To: [email protected]
Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of 
ListBoxes)

Honestly....without subclassing, I think I'd hate programming.  It surely would 
not be as enjoyable.

Check out the SaveSource and RestoreSource methods I posted in the ProFox 
downloads section to add to your grid subclass.  Those are MUST HAVEs in my 
opinion so you never have to rebuild your grids after changing (requerying) the 
underlying cursor.

hth,
--Mike



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/sn1pr10mb09280328b0cce820f4ae4f13d2...@sn1pr10mb0928.namprd10.prod.outlook.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to