On Jul 23, 2007, at 4:11 PM, Sytze de Boer wrote:

> In my systems, I have a OKL Ctrl+F.
> I only want this active ONLY if there's a GRID available
> Is there a way that I can detect if there's a Grid on this FORM ?

        Add a property to your form called "hasGrid", and default it to .F.  
Then add the lines:

TRY
        Thisform.hasGrid = .T.
CATCH
        * No such prop; ignore
ENDTRY

to the Init() of your grid class. Then your form only needs to check  
if This.hasGrid is .T.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to