Subject | Re: [IBO] Problem with OnCalculateField |
---|---|
Author | Stuart Hunt |
Post date | 2004-01-14T10:37:33Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@t...> wrote:
said, aren't double negatives fun?
see what happens. Thanks
> At 09:52 AM 14/01/2004 +0000, you wrote:to
> >Hi,
> >Ihave recently upgraded to IB Objects 4.2Ib from 3.3Ba and most of
> >our code works fine. However, our OnCalculateField events have
> >started padding string fields. We use ARow.ByName('XXX').AsString
> >get the value, and this used to return the string trimmed but nowTIB_Statement;
> >seems to return the string padded. For example, code to return
> >someones name:
> >
> >procedure TfrmDocSel.qryDocumentCalculateField(Sender:
> > ARow: TIB_Row; AField: TIB_Column);have
> >begin
> > AField.AsString:=ARow.ByName('FORENAME').AsString+' '+
> > ARow.ByName('SURNAME').AsString;
> >end;
> >
> >Now returns "Stuart Hunt " instead of "Stuart
> >Hunt". I use calculated fields a lot and therefore don't want to
> >to manually trim the fields for al lthese cases.property
> >I have also ensured that the connection's DefaultNoTrimming
> >is FALSE.As I understand it this means don't not trim; i.e. trim :-) - as you
>
> That means that your character fields WON'T be trimmed, doesn't it?
said, aren't double negatives fun?
>this
> >Does anyone know what I'm doing wrong, or is this a problem with
> >version of IBObjectsI thought that might be the case - I'll try upgrading to 4.3Aa and
>
> ..or the vicissitudes of double negatives? :-))
>
> > and should I upgrade?
>
> 4.2 Ib is pretty old...
see what happens. Thanks
>
> Helen