Subject RE: ParamName, was Re: [IBO] Programmatically grant role to user
Author Roger Vellacott
The way I do this is to refresh a TTimer with an interval of 300 ms
after every key press. If user stops typing for 300ms, the query is
refreshed by the timer.

Roger Vellacott

-----Original Message-----
From: Salvatore Besso [mailto:s.besso@...]
Sent: 03 March 2006 10:39
To: IBObjects@yahoogroups.com
Subject: Re: ParamName, was Re: [IBO] Programmatically grant role to
user


hello Helen,

thanks for the clarification :-)

> So, for the 'tr_type' parameter, I have a TIB_radiogroup that has
> all the debit types as its items, that is bound to ParamName
> tr_type, and for the two dates I have two tib_edits bound to
> ParamName tr_date1 and tr_date2 respectively.

so the trick is - taking your TIB_radiogroup as an example - to create
an OnClick handler for the control and fill it with a TIB_Query.Refresh
instruction:

TIB_radiogroup.OnClick;

begin
TIB_Query.Refresh
end;

This could be fine for this type of control, but what about a TIBEdit or

similar control?

OnChange event? Doing this we would have a query refresh for every
character typed. Not so good...

OnExit event? The user may type characters without tabbing out of the
control. Not so good...

OnKeyPress event? Make the control responding to the Enter key so that
you have to press Enter to refresh the query. Mmmmh...

Other?

Regards
Salvatore



________________________________________________________________________
___
IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
without the need for BDE, ODBC or any other layer.
________________________________________________________________________
___
http://www.ibobjects.com <http://www.ibobjects.com> - your IBO
community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !





SPONSORED LINKS
Resume database software Customer database software Database
development software
Database design software Membership database software Database
software

_____

YAHOO! GROUPS LINKS



* Visit your group " IBObjects
<http://groups.yahoo.com/group/IBObjects> " on the web.


* To unsubscribe from this group, send an email to:
IBObjects-unsubscribe@yahoogroups.com
<mailto:IBObjects-unsubscribe@yahoogroups.com?subject=Unsubscribe>


* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .


_____