Board index » delphi » IBX 4.2 with blanks ????

IBX 4.2 with blanks ????

hi,

i have one problem:
delphi5 update 1 / interbase 6.01 / Ibx 4.2

i stored width the bde-components a string ("12345") in a field which is
char10 !
i read this string and i get "12345".

alright !

then i changed the components from bde to ibx 4.2.
the same: i stored "12345".

when i read this string i get "12345     " !!!!
is it right that this components filled the complete field with blanks
??????

please tell me

thanks
heiner

 

Re:IBX 4.2 with blanks ????


Quote
> then i changed the components from bde to ibx 4.2.
> the same: i stored "12345".

> when i read this string i get "12345     " !!!!
> is it right that this components filled the complete field with blanks
> ??????

Yes, it's correct.

char(10) = exactly 10 characters, space-padded if necessary
varchar(10) = maximum 10 characters, as many as needed used, in your case 5.

Gunnar

Re:IBX 4.2 with blanks ????


thanks gunnar !
that it is !

"Gunnar Claesson" <gunnar.claes...@strmedia.se> schrieb im Newsbeitrag
news:39c89196_1@dnews...

Quote
> > then i changed the components from bde to ibx 4.2.
> > the same: i stored "12345".

> > when i read this string i get "12345     " !!!!
> > is it right that this components filled the complete field with blanks
> > ??????

> Yes, it's correct.

> char(10) = exactly 10 characters, space-padded if necessary
> varchar(10) = maximum 10 characters, as many as needed used, in your case
5.

> Gunnar

Other Threads