VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Sub to Increase or Desrease a var. Use 'Inc I' instead of 'I=I=1' or 'Inc I,5' instead of 'I=I+5'

by Jim Fouch (4 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Mon 10th September 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Sub to Increase or Desrease a var. Use 'Inc I' instead of 'I=I=1' or 'Inc I,5' instead of 'I=I+5'

Rate Sub to Increase or Desrease a var. Use 'Inc I' instead of 'I=I=1' or 'Inc I,5' instead of 'I=I+5'



  Value = Value + Step
End Sub

Public Sub Dec(ByRef Value As Variant, Optional Step As Variant = 1)
  Value = Value - Step
End Sub

Download this snippet    Add to My Saved Code

Sub to Increase or Desrease a var. Use 'Inc I' instead of 'I=I=1' or 'Inc I,5' instead of 'I=I+5' Comments

No comments have been posted about Sub to Increase or Desrease a var. Use 'Inc I' instead of 'I=I=1' or 'Inc I,5' instead of 'I=I+5'. Why not be the first to post a comment about Sub to Increase or Desrease a var. Use 'Inc I' instead of 'I=I=1' or 'Inc I,5' instead of 'I=I+5'.

Post your comment

Subject:
Message:
0/1000 characters