
passing by references doesn't work
Quote:
> In the Keypress event of my textbox, I got the following code:
> Private Sub txtRevenue_KeyPress(KeyAscii As Integer)
> Valnum (KeyAscii)
----------^ ^
These parentheses mean that you're passing the
parameter ByVal, i.e. it is equivalent to
ValNum ByVal KeyAscii
You must use either of the following syntaxes(sp?)
1) Call ValNum(KeyAscii)
2) ValNum KeyAscii
N Varacalli
--
The views expressed herein do not represent the views of my employer.
To reach me via e-mail, try (without the asterixes)
***NICHOLAS_VARACALLI at non-hp-Canada-om1.hp.com***
Pursuant to US Code, Title 47, Chapter 5, Subchapter II, Sec. 227,
any and all nonsolicited commercial E-mail sent to this address is
subject to a download and archival fee in the amount of $500 US.
E-mailing denotes acceptance of these terms.