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)
|