Subject | Re: [IBO] TIBOQuery: OnSetText and OngetText not firing? |
---|---|
Author | John vd Waeter |
Post date | 2006-05-09T21:06:23Z |
Jason Wharton wrote:
would I have to use it to make OnGetText/OnSetText work?
> You should use the DisplayText property instead of AsString if you wantI'd love to, but how? This property is just a read-only string. How
> these events to work.
would I have to use it to make OnGetText/OnSetText 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
>
>
>
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more !
> Yahoo! Groups Links
>
>
>
>
>
>
>
>