Coming in a bit late here, but I wanted to point out one thing...

 >      If Control(i) IsA EditField Then
        // Cast the Control
        EF = EditField(Control(i))
        // Search the EFLog EditField
        If EF.Name = "EFLog" Then
          // I found it !
          EF.Enabled = True
        End If
 >      End If

It's worth pointing out that the use of the "Name" property in this way is a bit contrived -- if you really wanted to enable EFLog, you wouldn't use a loop at all, but would simply say:

  EFLog.Enabled = True

Also, if you want to check for a particular control while looping over controls, you shouldn't use the Name property; just compare it to the one you have in mind, like so:

   // enable all EditFields except for EFLog, which is special
   If Control(i) IsA EditField and Control(i) <> EFLog then
      EditField( Control(i) ).Enabled = True
   End If

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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