Board index » delphi » Memo "BLOB" fields and Lists
Dan Cumpian
![]() Delphi Developer |
Tue, 25 Dec 2001 03:00:00 GMT
|
Dan Cumpian
![]() Delphi Developer |
Tue, 25 Dec 2001 03:00:00 GMT
Memo "BLOB" fields and Lists
Can anyone tell me how to read a memo field into a TStringList object? I am
stumped... FYI, I am using the memo field to store a list of items (similar to an INI Any help will be appreciated... |
Wood
![]() Delphi Developer |
Tue, 25 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsUse the statement MyStringList.Assign(myTable.FieldByName('Memo1')); Woody QuoteDan Cumpian <ir000...@mindspring.com> wrote in message Can anyone tell me how to read a memo field into a TStringList object? I am stumped... FYI, I am using the memo field to store a list of items (similar to an INI Any help will be appreciated... |
Dan Cumpia
![]() Delphi Developer |
Thu, 27 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsThanks for the help...it seems so obvious now. Believe it or not, I spent two hours trying to find the correct solution in the help files. Is there any place that references properties and methods in a less cryptic format? Thanks, QuoteWoody wrote in message <931558602.206...@news.remarQ.com>... |
Dan Cumpia
![]() Delphi Developer |
Fri, 28 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsWoody, I tried what you suggested and I get "Data type incompatible" error Any advice? QuoteWoody wrote in message <931558602.206...@news.remarQ.com>... |
Bj?rge S?the
![]() Delphi Developer |
Fri, 28 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsHi ! What about MyStringList.text:=MyTable.FieldByName('Memo1').AsString; ? -- Bjoerge <<Dan Cumpian skrev i meldingen <7mcref$v1...@nntp5.atl.mindspring.net>... I tried what you suggested and I get "Data type incompatible" error Any advice? QuoteWoody wrote in message <931558602.206...@news.remarQ.com>... |
Wood
![]() Delphi Developer |
Fri, 28 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsIt's possible. I use this type of assignment statement all the time to get memo field contents. You can assign ANY string list such as a TMemo.Lines, etc. I don't know why it doesn't work for you... Woody QuoteDan Cumpian <ir000...@mindspring.com> wrote in message Woody, I tried what you suggested and I get "Data type incompatible" error Any advice? QuoteWoody wrote in message <931558602.206...@news.remarQ.com>... |
Steve Koters
![]() Delphi Developer |
Fri, 28 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsOn Mon, 12 Jul 1999 09:43:08 -0400, "Dan Cumpian" <ir000...@mindspring.com> wrote: Quote>I tried what you suggested and I get "Data type incompatible" error FieldByName method returns a reference of type TField, not TMemoField. In some versions of Delphi this mightr be a problem. Try typecasting the reference from FieldByName as a TMemoField. MyStringList.Assign(TMemoField(myTable.FieldByName('Memo1'))); _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ |
Dan Cumpia
![]() Delphi Developer |
Sat, 29 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsAfter more experimentation, I finally solved it with the following: // Retrieve text in memo as string... // Parse string into a Stringlist... Whatever works!! Thanks for everyone's help. Dan Cumpian QuoteBj?rge S?ther wrote in message ... |
AlanGLLo
![]() Delphi Developer |
Sun, 30 Dec 2001 03:00:00 GMT
Re:Memo "BLOB" fields and ListsIn article <q4Ei3.68$ur4.2...@news.clear.net.nz>, "Alec Ford" Quote<alecf...@clear.net.nz> writes: If you have an {*word*60}ion to pointers then feel free to use them <gg> but Delphi Note also that you are wasting memory by using New _and_ TCheckBox.Create. They Your "clearer, newer" <g> code would appear like :- var var You also might find it easier (and conform to general usage) if your arrays had Quote>For the event handler procedures start with manually creating one component providing that :- 1 It is a method of the form, ie it has "procedudure TForm1." before the name 2 It uses the parameters and names appropriate to the event type, for a simple 3 The header line ie "procedure MyProcedure(param1 etc" without the TForm1. Of course doing it your way works (and you could change the name to a more Hope this helps Alan Lloyd |
3. Caching Blobs-"Invalid Blob handle"
4. BLOB: conversion error from string "BLOB"
5. MasterFields "EMERGENCY" problem "No index for Fields """
6. "Blob not opened" or "Blob already opened"
7. "Error 93 - Used memo block in free list chain
9. How to initialize "Text"-Property without raising "OnChange"-event
10. How to initialize a "Text"-property without raising an "OnChange"-event