PDA

View Full Version : how to get object type?



anand panse
17-Aug-2006, 01:29 AM
hi all,
i am using VDF 12.0.88. i am sub classing a dbform.in that i want to print
some message at the bottom of view.
if the extended class object is directly on the view it works fine but
when the same extended class object is on a dbgroup the message is printed
at the bottom of the dbgroup and not the view
so how do i get the handle to the view irrespective of wheter the view is
parent or grandparent of the extended class object

Warm Regards
Anand Panse
Itrix Inc.

David Martinko
17-Aug-2006, 07:07 AM
Handle hoObj
Move (Self) to hoObj
While ((Parent(hoObj) <> oClientArea) and (hoObj<>0))
Get Parent of hoObj to hoObj
Loop

When it's done looping.. you will have the view's object id
--
David Martinko
248-535-7495
Tracker Systems, Inc.
Redeemed Software
Redeemed Hosting
www.trackersys.com
www.redeemedsoftware.com
www.redeemedhosting.com
Proud member of the Northeast DataFlex Consortium: (NEDC)
www.NEDataFlex.com

"anand panse" <anand@itrixinc.com> wrote in message
news:c5KxQacwGHA.1292@dacmail.dataaccess.com...
hi all,
i am using VDF 12.0.88. i am sub classing a dbform.in that i want to print
some message at the bottom of view.
if the extended class object is directly on the view it works fine but
when the same extended class object is on a dbgroup the message is printed
at the bottom of the dbgroup and not the view
so how do i get the handle to the view irrespective of wheter the view is
parent or grandparent of the extended class object

Warm Regards
Anand Panse
Itrix Inc.