Results 1 to 7 of 7

Thread: [RESOLVED] Declare array in eVB

Threaded View

  1. #1

    Thread Starter
    Addicted Member yolandre's Avatar
    Join Date
    Oct 2004
    Posts
    177

    Resolved [RESOLVED] Declare array in eVB

    Can anyone confirm the correct way of declaring an array in eVB? I recently ported an app from VB6 to eVB.

    The following declaration appears in the VB6 app:
    Private MyCounter(0 To 30) As Long

    I replaced the above declaration with the following in eVB:
    Public MyCounter(30) As Long

    I also tried the following:
    Public MyCounter(30, 30) As Long

    Unfortunately I still get an error message in eVB: Subscript out of range: ‘MyCounter’.

    Any advice?
    Last edited by yolandre; Jan 1st, 2008 at 03:08 AM.

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