Dear List:
i am working with Tdbf and i want to fix in a DBEdit control the words Yes
or No.
If i do it typing "yes" or "no", no problem, the DBEdit control interprets a
change and the Navigator bar become Active an i can "post".

but i want to do it clicking over the DBEdit.

i have implemented in the DBEditClick event this procedure
begin
   if DBEdit.text='yes' then DBEdit.text:='No'
   else
   if DBEdit.text='No' or DBEdit.text='' then DBEdit.text:='Yes';
end;

and the DBEdit control remain with the original field value and the
Navigator bar dont get Active.

thanks in advance,

yours,

Ing. Héctor F. Fiandor Rosario
[email protected]


--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to