[fpc-pascal] Re: TMemoField saving empty strings as '' (double quote)

silvioprog silvioprog at gmail.com
Tue Sep 10 13:44:51 CEST 2013


2013/9/10 Reinier Olislagers <reinierolislagers at gmail.com>

> On 09/09/2013 22:27, silvioprog wrote:
> > I'm trying to save an empty string in a TMemoField, but it always saves
> > a double quote ('') instead.
> >
> > Attached a small example to reproduce the error.
> It seems you're trying to clear the field (which IMO should give NULL).
> Shouldn't you use .AsString to assign an empty string value to it?


Even passing AsString = '' it saves a double quote in database.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130910/078a448b/attachment.html>


More information about the fpc-pascal mailing list