🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3206

OpenSchema and GUID fields

#3206
From: Mark Guerrieri
Date: Fri, 06 Dec 2002 03:27
17 lines
1879 bytes
I am using TADOConnection->OpenSchema to retrieve schema information from a
Visual Foxpro database using the Visual Foxpro OLEDB provider.  I hook the
returned TADODataSet to a TDBGrid and everything is fine, until...

If I access a Schema that returns a GUID field, such a s siColumns, then I
try to drag a column in the grid containing the TGuidField data, I get an
access violation.  If I set the TGuidField's OnGetText event to just return
"{GUID}" then everything works, but if I try to access the
TGuidField->AsString from within OnGetText or omit the OnGetText handler
alltogether, I get an access violation.  It has no problems when initially
displaying the grid, only when a column move causes the grid to have to
retrieve the field's value and I don't override OnGetData.

Any ideas?

Mark Guerrieri
mguerrieri@cmsgrp.com
Technical Details
Message-ID: <3df017cf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,ac389fd2d3ad87db,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-12-05 19:39:01 PST
Reply-To: "Mark Guerrieri" <mguerrieri@cmsgrp.com>
From: "Mark Guerrieri" <mguerrieri@cmsgrp.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: OpenSchema and GUID fields
Date: Thu, 5 Dec 2002 22:27:56 -0500
Lines: 19
Organization: Creative Marketing Strategies
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 66.200.143.50
Message-ID: <3df017cf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039144911 66.200.143.50 (5 Dec 2002 19:21:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail