Results 1 to 5 of 5

Thread: Just a little operator question

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3

    Talking

    Hey does anyone know what i can do in this situation?
    -----------
    'say i wanted to dim a bunch o stuff that all had # endings

    'i would like to do this,

    for i = 1 to 10
    dim name & i & as integer
    next

    -----

    What would i use for the & operator if i was using variables?

    help would be much appreciated!


  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3
    oh yeah, and it doesn't have to be an opeerator
    just anything to speed up the process a little

    thanx

  4. #4
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Lightbulb

    The & can be used for "as long" i think.
    Matt

  5. #5
    Guest
    If you want to declare variables in that respect, why not use an Array?

    This will create an Array of 9 elements.
    Code:
    Dim MyArray(9) As Integer
    
    'Usage:
    '
    'For I = 0 To 9
    'MyArray(I) = I
    'Next I
    If you want your Array's you start at 1, then use Option Base 1
    Code:
    Option Base 1
    
    Dim MyArray(10) As Integer

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