++, =+

.net , vb6 United States
  • 15 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?

  • 15 years ago

    No there isn`t..


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

  • 15 years ago

    There will be in VB.NET though :-)

  • 15 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.

    “Java is to JavaScript what Car is to Carpet.” - Chris Heilmann