title: How do strings work in VB
body: <p>I am currently reworking an Intranet Website using Active Directory, and the ancient developer did everything in VB, I am now developing it in C# and a bunch of recent technologies. So I am going through his code for a few functionalities I'm having a hard time with (I did a quick overview of VB to see how it works globally) and I don't understand how strings work here. </p>
  
  <p>For example, there is the following declaration:</p>
  
  <pre><code>Dim sGroups, oGroup
  sGroups=activeDirectoryUserObject.memberOf //Returns groups that user belongs to
  set oGroup = GetObject("LDAP://" &amp; sGroups)
  For j = 0 To UBound(sGroups)
      Set oGroup = GetObject("LDAP://" &amp; sGroups(j)) //Here!!
  </code></pre>
  
  <p>What is <code>sGroups(j)</code>? To me <code>sGroups</code> is a string not an array, so what's going on here?</p>
  
  <p>Thanks for your help!</p>