O
oldblindpew
My application successfully runs Public Functions from On Click events by
simply setting the On Click event equal to the Function name, but I feel I
"should" be using Subroutines since I'm not looking for a returned value.
However, the default behavior of Subroutines is to be Private, that is, the
code is married to one button on one form. The default name of any and every
Subroutine is [Event Procedure].
My question is: How do I run a Subroutine (I mean a real public subroutine,
not these little private procedures) from an On Click event? I find no
discussion of this in my reference books, which seems very strange.
simply setting the On Click event equal to the Function name, but I feel I
"should" be using Subroutines since I'm not looking for a returned value.
However, the default behavior of Subroutines is to be Private, that is, the
code is married to one button on one form. The default name of any and every
Subroutine is [Event Procedure].
My question is: How do I run a Subroutine (I mean a real public subroutine,
not these little private procedures) from an On Click event? I find no
discussion of this in my reference books, which seems very strange.