TIP: Click on subject to list as thread! ANSI
echo: delphi
to: GARY WEINFURTHER
from: NICOLA ROLANDO
date: 1996-07-20 12:48:00
subject: DBMemo Fields

Hi Gary,
On , you wrote me:
 GW> Something like this:
 GW> var
 GW>    MyLen    : word;
 GW>    MyString : PChar; begin
 GW>    MyLen    := DBMemo1.GetTextLen;
 GW>    MyString := StrAlloc(MyLen + 1);
 GW>    DBMemo1.GetTextBuf(MyString, MyLen);
 GW>    { Do your stuff with the string }
 GW>    StrDispose(MyString);
Well, thanks a lot. But my problem was another. I wanted to access a Memo 
Field in a database without using visual components (like TDBMemo). I cannot 
access it using "Table1.FieldByName('Memo Field').AsString" because I obtain 
nothing. I think I can use the GetTextBuf in this case, too. But I don't know 
how. Have I been clear?
Bye bye!
  Nicola
---
---------------
* Origin: Modem not found: (A)bort, (R)etry, (G)oto bed? (2:334/21.5)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.