thank Sefan,
I found Joe's code...

>>>
RetLastControlArrayIndex
theControl as controlClass(as integer)




   if theControl is nil then
  Return -1
  end if

  dim ParentWin as Window=theControl.Window
  dim N as integer=ParentWin.ControlCount-1
  dim LastIndex as integer= -1
  dim theControlName as string=theControl.Name

  for i as integer = 0 to N

    if ParentWin.Control(i).Name=theControlName then
      LastIndex=LastIndex+1
    end if
  next

  Return LastIndex

<<<<<



On Dec 7, 2006, at 9:10 AM, Stefan wrote:


Am 07.12.2006 um 15:10 schrieb [EMAIL PROTECTED]:

Hi,
I wish to determine the ubound of a control array with a method in the parent
class of a control array, so something like

x = me.UboundOFthisControlArray

As others pointed out, a controls array is in fact no array. This is really ugly,
since it appears - by means of syntax - to be one.

You need to iterate through the control and check which one is nil, which is the end - if I remember correctly._______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to