Subject | RE: [IBO] TIBOQuery: OnSetText and OngetText not firing? |
---|---|
Author | Jason Wharton |
Post date | 2006-05-09T20:17:40Z |
You should use the DisplayText property instead of AsString if you want
these events to work.
Jason Wharton
these events to work.
Jason Wharton
> -----Original Message-----
> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On
> Behalf Of John vd Waeter
> Sent: Tuesday, May 09, 2006 6:05 AM
> To: IBObjects@yahoogroups.com
> Subject: [IBO] TIBOQuery: OnSetText and OngetText not firing?
>
>
> Hi All,
>
> I try to encrypt/decrypt data in the OnGetText and OnSetText events.
>
> Dataset is a TIBOQuery.
>
> Dataset.fieldByName('somedata').OnSetText:=scramble;
>
> procedure Scramble(Sender: TField; const Text: String);
> begin
> Field.AsString:=Encrypt(Text);
> end;
>
> and vice versa in the OnGettext-event.
>
> However, these events never get triggered?
>
> tia!
> John