FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to Get Object type
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
How to Get Object type
Posted: Fri Mar 06, 2009 09:15 AM
Hi,
i want to clear all controls after saveButton is executed.Problem is that iam not
getting Object type can some one help me.

Code (fw): Select all Collapse
Function ClearControls(oDlg)
LOCAL oControl

FOR EACH oControl IN oDlg:aControls
  IF ="TGet"   //Here i want to check Object name whether Object type is "Get or Say"
     oControl:SetText("")
     END if
next
RETURN nil


Regards,
Sajith
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: How to Get Object type
Posted: Fri Mar 06, 2009 09:24 AM
Code (fw): Select all Collapse
FOR EACH oControl IN oDlg:aControls
  IF oControl:ClassName()="TGet"  //Here i want to check Object name whether Object type is "Get or Set"
     oControl:SetText("")
     END if
next


//Here i want to check Object name whether Object type is "Get or Set"


What do you mean by Get or Set ?

Regards

Anser
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
Re: How to Get Object type
Posted: Fri Mar 06, 2009 09:32 AM

Sorry i mean Say
Thanks
Regards,
Sajith

Continue the discussion