SitesMasstec
Programmer
Hello colleagues!
In a Form a have:
in Object txtRco01, Procedure GotFocus:
MyNumber="01"
(a lot of same more code)
in Object txtRco02, Procedure GotFocus:
MyNumber="02"
(a lot of same more code)
... repetead in 20 objets (till Object txtRco20)
I think I can write just once the code in a sub-routine...
PROCEDURE MYSUBROT
...(a lot of same more code)
RETURN
... and in each object, in GotFocus procedure, put just this:
MyNumber="01"
DO MYSUBROT
If this is possible, where do I have to put the PROCEDURE MYSUBROT code?
Thanks,
SitesMasstec
In a Form a have:
in Object txtRco01, Procedure GotFocus:
MyNumber="01"
(a lot of same more code)
in Object txtRco02, Procedure GotFocus:
MyNumber="02"
(a lot of same more code)
... repetead in 20 objets (till Object txtRco20)
I think I can write just once the code in a sub-routine...
PROCEDURE MYSUBROT
...(a lot of same more code)
RETURN
... and in each object, in GotFocus procedure, put just this:
MyNumber="01"
DO MYSUBROT
If this is possible, where do I have to put the PROCEDURE MYSUBROT code?
Thanks,
SitesMasstec