🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database
Article #2001

Re: How to extract text from memo-field

#2001
From: Michael Lund
Date: Sun, 14 Mar 1999 00:00
13 lines
812 bytes
>How do I extract the text from a memo-field in my database?
>
>....
>temp: string;
>....
>temp:=table1.FieldByName('MyMemo').AsString
>
>
>returns: Exception EVariantError in module TEST.EXE at 000048CB. Invalid
>variant type conversion.


hmmm... using .Text instead of .AsString solved the problem.
Technical Details
Message-ID: <36ebc645.0@news.euroconnect.dk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36ebb7c9.1@news.euroconnect.dk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 115d96,812097028a384e6b
X-Google-Attributes: gid115d96,public
From: "Michael Lund" <milu@it-support.dk>
Subject: Re: How to extract text from memo-field
Date: 1999/03/14
Message-ID: <36ebc645.0@news.euroconnect.dk>
X-Deja-AN: 454856133
References: <36ebb7c9.1@news.euroconnect.dk>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Trace: 14 Mar 1999 14:23:01 GMT, 195.97.162.26
Newsgroups: borland.public.delphi.database