🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ADOQuery

#1559
From: kev
Date: Mon, 17 May 2004 13:04
19 lines
1579 bytes
Some time ago I posted some questions regarding Blobs. It turns out that the
field I was trying to access was defined as VarBinary(8000) so I could not
use blob stram (as indicated by V. Vassiliev in an earlier response).  The
advise I was given was to use ADOQuery->Fields->Fields[]->Value  OR
ADOQuery->Recordset->Fields->Item[]->Value.

Fields->Value yields a NULL or "".  I tried the Recordset, but it does not
seem to be a correct statement.  I finally tried

char *Buffer.
Buffer =(char*) ADOQuery1->Fields->Fields[4];

I get something that looks like it might be a pointer, but can't get any
further.  Can someone please assist me in getting this data from this field?
It is field [4] and is a byte array with the next field [5] defining the
length.

thanks,
kev
Technical Details
Message-ID: <40a8b874@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,5cd61b8b304e7864,start
X-Google-Attributes: gid10698b,public
From: "kev" <kev@isp.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: ADOQuery
Date: Mon, 17 May 2004 08:04:52 -0500
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 65.116.27.178
Message-ID: <40a8b874@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084799092 65.116.27.178 (17 May 2004 06:04:52 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail