New topic: 

Out of Bounds exception on Addrow?

<http://forums.realsoftware.com/viewtopic.php?t=45560>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Roland Foster          Post subject: Out of Bounds exception on 
Addrow?Posted: Tue Oct 09, 2012 8:36 am                         
Joined: Sat Jan 12, 2008 12:54 pm
Posts: 28                I have a Windows customer who is getting an out of 
bounds exception, (I think) on an Addrow instruction. Here is the whole code 
segment (suzy is a shell):

  z = "dir " + DataPath + "*.rdws"
suzy.Execute z
anArray = Split(suzy.Result)
For i = 0 To Ubound(anArray)
  p = Instr(anArray(i),".rdws")  ' don't save the extension
  If p > 0 Then
  x = Left(anArray(i),p-1)
  Servers.AddRow x      ' save the server name in the Listbox
  End If
Next i


This has been in production for two years ... but this customer has a lot of 
servers (I don't yet know how many). Can Addrow throw an out of bounds for that 
reason? I can tell you that the visible part of listbox is populated.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to