Subject | RE: [IBO] TIB_ColumnText and strings that are too long |
---|---|
Author | Jason Wharton |
Post date | 2006-01-16T19:54:46Z |
One thing to PLEASE keep in mind here.
When assigning text values in code if you use the AsRawString property
instead of the AsString property you WILL get length checking as well as a
more efficient operation because there isn't other stuff like trimming, case
sensitivity, OnSetText event, etc. type of processing going on. You simply
slam in raw text that is ensured to be sent to the server just as it is
presented or you get an exception.
This is more or less what Martijn was looking for in the beginning and
perhaps he would have been appeased at just knowing and using this. This is
the IBO way of dealing with text imports, etc.
As it is, I went ahead and enhanced IBO to allow for efficient handling of
checking the data length when using the AsString property as well. I simply
customized the FieldsTrimming behavior. See the release notes in the next
sub-release.
Jason
When assigning text values in code if you use the AsRawString property
instead of the AsString property you WILL get length checking as well as a
more efficient operation because there isn't other stuff like trimming, case
sensitivity, OnSetText event, etc. type of processing going on. You simply
slam in raw text that is ensured to be sent to the server just as it is
presented or you get an exception.
This is more or less what Martijn was looking for in the beginning and
perhaps he would have been appeased at just knowing and using this. This is
the IBO way of dealing with text imports, etc.
As it is, I went ahead and enhanced IBO to allow for efficient handling of
checking the data length when using the AsString property as well. I simply
customized the FieldsTrimming behavior. See the release notes in the next
sub-release.
Jason