Handling varchar fields


Author
Message
Daniel Essin
Daniel Essin
StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)
Group: Forum Members
Posts: 235, Visits: 309
I have a database field SendMethod varchar(10).



When I refer to this field after a Fill procedure, for example as:

bo.SendField the contents is "FAX " padded to a length of 10.

I think that for a varchar(10) field, the contents should be "FAX" and for a char(10) the contents should be "FAX ".



If the current behavior is correct then I will have to Rtrim every reference to the field in the BO, which doesn't sound appealing.



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search