Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Need special characters as default value in memo field
Thu, Jan 28 2010 3:56 PMPermanent Link

Michael Eubanks
I am trying to put special characters (CR + LF) as default values for a field, I am using code like this but it is not working:

   s := 'Alter Table [My Table] redefine Comments memo default ''Line1: '' + #10 + #13 + ''Line2: ''';
   Qry.SQL.Text := s;
   Qry.ExecSQL;

Using DBISAM 4.26 b3

Thanks

Michael Eubanks
Thu, Jan 28 2010 4:35 PMPermanent Link

Michael Eubanks

It does not seem that you can set a default value on memo fields. Frown

Michael


Michael Eubanks wrote:

I am trying to put special characters (CR + LF) as default values for a field, I am using code like this but it is not working:

   s := 'Alter Table [My Table] redefine Comments memo default ''Line1: '' + #10 + #13 + ''Line2: ''';
   Qry.SQL.Text := s;
   Qry.ExecSQL;

Using DBISAM 4.26 b3

Thanks

Michael Eubanks
Fri, Jan 29 2010 10:53 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< It does not seem that you can set a default value on memo fields. Frown>>

No, you cannot.  You also cannot use expressions with concatenation as
default values, only simple constants and certain functions.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image