CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: [Help] Visula Basic Loops

    Oooppssss....

    Quote Originally Posted by DataMiser View Post
    First of all your Dim statements are not form properly.
    Code:
    Dim name, highName, lowName As String
    is the same as it you had typed
    Code:
    Dim name as Variant, highName as Variant, lowName As String
    That was vb6. In Net, the declaration is correct, and name, highName, lowName are all of String type.

    framework 3.5 and vs 2008: look for "Different Types. You can specify different data types for different variables by using"
    http://msdn.microsoft.com/en-us/libr...(v=vs.90).aspx
    framework 4.0 and vs 2010: look for "Declaring Multiple Variables"
    http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx
    framework 2.0-3.0 and vs 2005 : look for "Multiple Variables. "
    http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx
    Last edited by Cimperiali; February 20th, 2012 at 07:46 AM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured