🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DBMemo

#2073
From: Alen Markov
Date: Wed, 03 Dec 2003 15:15
40 lines
1750 bytes
Hi everyone

I have a simple Access Database with one Table:

MyTable
- Name         (Text)
- Description (Memo)


I connect to it with ADO and a DBGrid is displaying the data from the table.
(The DBGrid is only displaying the Row "Name")

The content of "Description", I display with a DBMemo connected
to the same Database...

If I enter something into the DBGrid, the Data is saved as soon
as I click on another row in the DBGrid.

If I want to write something directly by code into the DBGrid
I can write:

ADOQuery1->FieldByName("Name")->AsString = "My Name";


But how about if I want to write something into the "Description" which
is a Memo (and not Text)?

This doesn't work:

ADOQuery1->FieldByName("Description")->AsString = "My Description";


How do I write into that Memo Field?


Best regards,
Alen

--
WEB: http://www.come.to/nostromo
Technical Details
Message-ID: <3fcdfd9f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,59be9716d105b4d,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-12-03 07:19:31 PST
From: "Alen Markov" <NOSPAM_amarkov@gmx.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: DBMemo
Date: Wed, 3 Dec 2003 16:15:18 +0100
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 80.218.75.253
Message-ID: <3fcdfd9f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070464415 80.218.75.253 (3 Dec 2003 07:13:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail