RE: DBI control update

Author: Kent Belan

Posted: 2011-11-10 at 10:50:19

Hello Tracy,

I rebuilt the entire project but that did not change the controls on the

forms to the new version.

I opened the form.scx file and found the ctGrid OLE control, but not sure

what field should be changed ?

It looks like the OLE field contains the actual object, and OLE2 contains

the path to the OCX file.

I checked that the OCX in the DBI\Components folder is the new version, but

the form still shows the old version.

I am guessing that I need to change the OLE field ?

Thanks,

Kent

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Tracy Pearson

Sent: Wednesday, November 09, 2011 5:57 PM

To: profox@leafe.com

Subject: RE: DBI control update

Mike Copeland wrote on 2011-11-09:

> Welcome to the wonderful world of OCX! (aka "OCX HELL")

>

> Here's my understanding...how I deal with it...your mileage and my

> smarts may vary depending on caffeine intake.

>

...

> If there's an easier way to go about this, I'd love to hear about

> it...I've been wrasslin' DBI OCX controls for over 12 years.

>

> Mike Copeland

>

> -------- Original Message --------

> Subject: DBI control update

> From: Kent Belan <kbelan@mchsi.com>

>

> Hello,

>

> I guess this would apply to any OCX control update.

>

> I just updated my DBI controls from v1.1 to v1.2.

>

> Three of the controls that where updated, I use in my project,

> ctList, ctTree and ctGrid.

>

> I have subclassed all the dbi controls into a separate class and use

> that class to add objects to forms.

>

...

>

> Thanks,

> Kent

>

Mike,

Since you've subclassed the controls. I believe a complete rebuild of the

project will fix your issue.

If not, there is a way to update the form by using the scx and replacing the

memo fields that are relevant to the record. I found SCATTER and GATHER

worked the best for the couple I've done in the past. This doesn't lose any

settings or code.

Tracy Pearson

PowerChurch Software

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/A87301EDE0AF42E3946BF896EAF3567A@LaptopW7

** 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.

©2011 Kent Belan