Results 1 to 12 of 12

Thread: [RESOLVED] Loops.

Threaded View

  1. #1

    Thread Starter
    Addicted Member Fonty's Avatar
    Join Date
    May 2006
    Location
    New York
    Posts
    173

    Resolved [RESOLVED] Loops.

    I'm trying to implement a loop on a set of variables of the same type which are named strn, where n is an integer.
    Why does this code doesn't work? How should I define the intermediate variable aux?

    Code:
    Dim auxAs Object
    Dim str1 As String
    Dim str2 As String
    
    str1 = "str1"
    str2 = "str2"
    
    For i = 1 To 2
        Set obj= "Str" & 1
        MsgBox aux.Name
    Next i
    Last edited by Fonty; Sep 10th, 2007 at 04:50 PM.

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