From: JD on
Hi to all,

If we do someting like:

1) create the class --> CLASS MySLE INHERIT SingleLineEdit

2) create the method --> METHOD Dispatch CLASS MySLE

3) create SLE controls SLE_1, SLE_2, SLE_3

4) declare the SLE controls 1, 2 and 3 as inherit MySLE

Is it possible in dispatch to know in witch control the user are when
he is imputing the data?

TIA

Jairo.



From: Stephen Quinn on
Jairo

> Is it possible in dispatch to know in witch control the user are when
> he is imputing the data?

You might also tell us what your trying to achieve by manipulating controls
this way.

You'd need some way of telling the control to 'act' in a particular manner
at runtime which is very difficult to do as all you have is the data entered
by the user to define any change of behaviour.

If you want the controls to 'act' in a particular manner then program the
intelligence into individual controls and inherit from them.

CYA
Steve


From: Geoff Schaller on
Of course.



"JD" <jdhora(a)ig.com.br> wrote in message
news:9c514924-e8b6-4571-bdd4-056a1abead97(a)b2g2000yqi.googlegroups.com:

> Hi to all,
>
> If we do someting like:
>
> 1) create the class --> CLASS MySLE INHERIT SingleLineEdit
>
> 2) create the method --> METHOD Dispatch CLASS MySLE
>
> 3) create SLE controls SLE_1, SLE_2, SLE_3
>
> 4) declare the SLE controls 1, 2 and 3 as inherit MySLE
>
> Is it possible in dispatch to know in witch control the user are when
> he is imputing the data?
>
> TIA
>
> Jairo.

From: Johan Nel on
IsInstanceOf(SELF, #SLE_1)

Geoff Schaller wrote:
> Of course.
>
>
>
> "JD" <jdhora(a)ig.com.br> wrote in message
> news:9c514924-e8b6-4571-bdd4-056a1abead97(a)b2g2000yqi.googlegroups.com:
>
>> Hi to all,
>>
>> If we do someting like:
>>
>> 1) create the class --> CLASS MySLE INHERIT SingleLineEdit
>>
>> 2) create the method --> METHOD Dispatch CLASS MySLE
>>
>> 3) create SLE controls SLE_1, SLE_2, SLE_3
>>
>> 4) declare the SLE controls 1, 2 and 3 as inherit MySLE
>>
>> Is it possible in dispatch to know in witch control the user are when
>> he is imputing the data?
>>
>> TIA
>>
>> Jairo.
>
From: JD on
On 13 nov, 21:35, "Stephen Quinn" <stevej...(a)bigpondSPAM.net.au>
wrote:
> Jairo
>
> > Is it possible in dispatch to know in witch control the user are when
> > he is imputing the data?
>
> You might also tell us what your trying to achieve by manipulating controls
> this way.
>
> You'd need some way of telling the control to 'act' in a particular manner
> at runtime which is very difficult to do as all you have is the data entered
> by the user to define any change of behaviour.
>
> If you want the controls to 'act' in a particular manner then program the
> intelligence into individual controls and inherit from them.
>
> CYA
> Steve

Depending of the control i need block some characters. example: sle_1
typed character = "." or ";" ... return 1L; sle_2 typed character =
"a", "b" ... return 1L.

I think is not a good idea to create an inherited class of
singlelineedit for each control.

That is it.

TIA.

Jairo.