06-29-2025, 01:28 PM
(06-29-2025, 12:49 PM)ahenry3068 Wrote: If you really want to code like that you could easily do something like this.That's one way. But using a sub requires sharing or knowing what variable is passed to sub. Need a generic sub, for all math types byte, integer ... and work for all INC variables passed down. Such as INC x, INC y, INC z. XYZ are different math types but I want all to increased by 1. Or my understanding about SUB's is wrong.
Code: (Select All)
Dim I As _Integer64
I = 10
INC I
Print I
End
Sub INC (X As _Integer64)
X = X + 1
End Sub

