>Hi.
>I have a form with a no. of conrols on it e.g.
>Text1
>Text2
>Text3 whose control source are fields on a file.
>
>I want to set up an assign method for some of these contols so that when a value is changed, something happens.
>
>When I go into Form properties and try to set up a new property called Text1 , it says its already there
>
>If I set up a new method called Text1_asign, nothing happens
>
>Any ideas on what I am doing wrong ?
>
>Regards,
>
>Gerard
Gerard,
In order to add assign method you need to subclass the textbox control. ie:
define class myTextBox as Textbox
procedure Value_Assign
lparameters vNewVal
this.Value = vNewVal
endproc
enddefine
However you don't need to create an assign method for value. There are already events that fire when you change value of textbox like InterActiveChange, ProgrammaticChange, Valid. And even LostFocus might be what you need.
Cetin