Results 1 to 7 of 7

Thread: stupid little question

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    stupid little question

    is there a difference between these two?

    Dim b As Integer()
    Dim a() As Integer
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Yeah where the () is placed.

    No there is no functional difference to my knowledge.

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Edneeis
    Yeah where the () is placed.

    No there is no functional difference to my knowledge.
    heh I had never seen the first one, where you put the () after the type
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    heh I had never seen the first one
    Its used in VBA.
    Last edited by Lunatic3; Jun 4th, 2003 at 03:59 AM.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  5. #5
    Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    49
    dim a as integer
    dim b() as integer

    b() is Array

    manesh
    ========================
    Think Twice when u Start or Stop.
    ========================

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Originally posted by MrPolite
    heh I had never seen the first one, where you put the () after the type
    You also use the first one when you want a function or something to return an array, since the first set of parathesis are for the arguments.

    Public Function Example() As String()

  7. #7
    Lively Member
    Join Date
    Feb 2003
    Location
    UK
    Posts
    95
    Originally posted by manesh
    dim a as integer
    dim b() as integer

    b() is Array

    manesh
    true, but that wasn't the original question.

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