Results 1 to 3 of 3

Thread: Variable = Variable + Addon | Easy Way?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96

    Variable = Variable + Addon | Easy Way?

    I wonder if there's a way to make this easier in VB...

    Variable1 = Variable1 + Variable2

    something like Variable =+ Variable2

    Just for adding while in a loop...using the old varaible...adding extra number....

  2. #2
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748
    Not that I know of

  3. #3
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    VB Code:
    1. Public Sub addToNumber(ByRef n As Long, ByVal nToAdd As Long)
    2.     n = n + nToAdd
    3. End Sub

    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width