realbasic-nug
[Top] [All Lists]

Looping through controls in a container object

To: realBASIC NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Looping through controls in a container object
From: Steve Davis <sdavis at alphagraphics dot com>
Date: Tue, 02 Dec 2003 01:33:28 -0700
Importance: Normal
I have a tab panel, which I assumed was a control collection object, and I want to loop through all the EditFields to set text = "". 
My assumption was that since the Tab Panel allowed for embedded objects I could loop though them like a collection.  I do this all the time in VB.Net.  For instance
 
For each control in TabDetails.Index(0)
    If control TypeOf(EditField) Then
      control.Text = ""
    End If
Next
 
Can I do this in RB?
<Prev in Thread] Current Thread [Next in Thread>