realbasic-nug
[Top] [All Lists]

Copying identity of an opened window

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Copying identity of an opened window
From: Andrew Keller <andrew at kellerfarm dot com>
Date: Sun, 1 Aug 2004 00:07:05 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
This code is supposed to find the frontmost instance of a window called frmCopy, but I get a Type Mismatch Error on line 6.


  Dim w As frmCopy
  Dim i,j As Integer
  j=WindowCount-1
  For i=0 to j
    If Window(i) IsA frmCopy Then
      w=Window(i)  // Type Mismatch Error, RB didn't highlight anything
      Exit
    End If
  Next


What's wrong with it?


Andrew

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

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

<Prev in Thread] Current Thread [Next in Thread>