Use varchar() instead.
> -----Original Message-----
> From: Scott Cree [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 2:33 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Interbase spaces
>
>
> I'm just starting a new project and have decided to use
> Interbase 6 with
> IBX.
> I've noticed that when saving data to a table, spaces are
> added to pad the
> field out to it's exact length. eg: if I have a field Char(6)
> and save the
> value 'ABC', then what looks like is actually saved is 'ABC
> '. Why is this
> and is there a way to stop it saving the spaces?
>
> It's a pain when loading the data, as when I populate my
> form, it has the
> extra spaces in the edit boxes etc.
>
> Cheers,
> Scott Cree
> --------------------------------------------------------------
> -------------
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"