++, =+

.net , vb6 United States
  • 19 years ago

    I've asked this before, but nobody answered... In JAVA, there are functions like ++ and =+ so that instead of typing something like:


    Code:
    Int1 = Int1 + 5


    You could just type:


    [Int1 =+ 5



    Or, ++ which justs adds 1, for example, instead of:


    Code:
    Int 1 = Int1 + 1


    You would use:


    Code:
    Int1 ++


    Is there something like this in VB?

  • 19 years ago

    No there isn`t..


    you`ll have to do:  a = a + 1
    or similar

  • 19 years ago

    There will be in VB.NET though :-)

  • 19 years ago

    As the others have already posted.  There is no way as of now, but when .NET comes out there should be a way to do it.

  • Post a reply

    Enter your message below

    Sign in or Join us (it's free).

    Contribute

    Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

    Our tools

    We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

    “I invented the term Object-Oriented, and I can tell you I did not have C++ in mind.” - Alan Kay