Subject Re: [IBO] TIB_ColumnText and strings that are too long
Author Martijn Tonies
Hello Jason,


> 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.

Right, this one triggers a "string truncation" error from within the
component.
Yes, slightly better, although the error message is less optimal.

Also, it doesn't seem to be available for TIBO* parameters?

Thanks for letting me know though, I can use this...

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com

> 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.