🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ftMemo Field Type

#3281
From: Albert Fowler
Date: Mon, 14 Oct 2002 17:05
34 lines
2443 bytes
Nevermind.....I was using the wrong Variant type in the Locate method just
before this, thats where the error was.....duh.......
Thanks Anyway
Albert
"Albert Fowler" <webmaster@codegeneration.com> wrote in message
news:3daab499$1@newsgroups.borland.com...
> I am using an access dbase "mdb". I have some fields that are defined as
> Memo fields. MS docs say they can contain text data up to 64k. Fields are
> defined in BCB6 as type ftMemo. When I create a new record I get an
> exception saying "Invaild Variant operation".
>
> From what I have read, it seems as this type is a blob type field designed
> for exactly what I am using it for, to contain strings longer than 255
> characters.
>
> I have tried using the AppendRecord() and Append() with FiledValues[] to
set
> the data, but I always get the same error. Am I missing something? How do
I
> access the data in those fields? Seems the Borland docs are saying to just
> use AsString, if thats the case, why cant data be set in the same manner?
>
> All I really need is a field that will hold up to 1024 text characters.
> I am considering using a char type field and always padding and trimming
> during data access, but this sounds very innefficient.
>
> BTW I am using TAdoConnection,TAdoSource and TAdoDataSet, DBase is created
> in Access97.
>
> Any ideas, answers welcome.
> Thanks,
> Albert Fowler
>
>
Technical Details
Message-ID: <3daaf98a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3daab499$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,baa02db89beec181,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-10-14 10:16:03 PST
From: "Albert Fowler" <webmaster@codegeneration.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3daab499$1@newsgroups.borland.com>
Subject: Re: ftMemo Field Type
Date: Mon, 14 Oct 2002 12:05:21 -0500
Lines: 36
Organization: Code Generation
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 64.216.131.163
Message-ID: <3daaf98a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1034615178 64.216.131.163 (14 Oct 2002 10:06:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail