Subject Re: [IBO] how to find what user has entered so far in a grid?
Author Andreas Pohl
Watch out overquoting and try TIB_Query.AfterInsert/AfterEdit which can be
assigned to same procedure. Would you like to set RO property of IBO
controls at runtime depending on a condition? Try this sample:

procedure TForm.IBP_Query1AfterEdit(IB_Dataset: TIB_Dataset);
var i:Integer;
begin
with IBP_SearchPanel1 do
for i:=0 to ComponentCount-1 do
if Components[i] is TIB_CustomEdit then
with (Components[i] as TIB_CustomEdit) do

IBP_Query1.FieldByName(DataField).ForceControlsReadOnly:=Superuser.Checked;

Mit freundlichem Gruss & Best Regards
Andreas Pohl
ibp consult

----- Original Message -----
From: "Hundri Magusin" <hundri_106@...>
Newsgroups: egroups.ibobjects
To: <IBObjects@yahoogroups.com>
Sent: Friday, June 07, 2002 11:24 AM
Subject: Re: [IBO] how to find what user has entered so far in a grid?


> I need to take action even before that, I need to implement a mask on the
> field i.e. not even allow the user to enter certain chars rather than
> letting him enter chars and then validate them.

> > Take a look at TIB_Query.OnValidateField. Here you can check changes (if
> > any) even before field's control is loosing focus or dataset is posted.

> > > I need to know what the user has entered so far in a grid's cell, i.e.
> > prior
> > > to even posting in the buffers so that I can use onIsValidChar as I
> wish.
> > I
> > > cannot seem to find a property for this and onIsValidChar does not,
> > > unfortunately, pass the latest value as a parameter.