title: Visual FoxPro 9 dynamic Arrays
body: <p>I'm trying to get Dynamic Arrays from my ActiveX component trough Visual FoxPro 9, but with no luck. <strong>(Edited and Working example)</strong></p>
  
  <pre><code>LOCAL objMain, objAdapt
  
  #define CrLf CHR(13) + CHR(10)
  
  stMsg = ""
  
  objMain = CREATEOBJECT('nnetsdk.oMain')
  
  objMain.UnlockComponent("xxx-xxxxx-xxxxx-xx")
  
  objAdapt = CREATEOBJECT('nnetsdk.oNetworkAdapter')
  
  objAdapt.GetNetworkAdapters &amp;&amp; Collects Network Adapter information
  
  vrAdapters = objAdapt.cName &amp;&amp; cName holds collected Network Adapter names
  
  FOR EACH vrAdapter IN vrAdapters
   stMsg = stMsg + vrAdapter + CrLf
  ENDFOR
  
  MESSAGEBOX(stMsg,64,"List Network Adapters")
  
  RELEASE objAdapt
  RELEASE objMain
  </code></pre>
  
  <p>Can someone explain me what is wrong with this code?</p>