02-13-2004, 02:44 PM
When using in the QB IDE, QB might sneekily put a DEFSNG A-Z on top of your sub
So, add DEFINT A-Z when necessary. Or use % or AS INTEGER (I prefer the latter in the sub itself, but the % in the DECLARE, like this:
So, add DEFINT A-Z when necessary. Or use % or AS INTEGER (I prefer the latter in the sub itself, but the % in the DECLARE, like this:
Code:
DECLARE SUB mysub (a%, b%, c!, d#, e$, f&)
SUB mysub (a AS INTEGER, b AS INTEGER, c AS SINGLE, d AS DOUBLE, e AS STRING, f AS LONG)
END SUB