How to Get Object type

How to Get Object type

Postby sajith » Fri Mar 06, 2009 9: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: Select all  Expand view

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
Last edited by sajith on Fri Mar 06, 2009 9:31 am, edited 1 time in total.
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India

Re: How to Get Object type

Postby anserkk » Fri Mar 06, 2009 9:24 am

Code: Select all  Expand view
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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to Get Object type

Postby sajith » Fri Mar 06, 2009 9:32 am

Sorry i mean Say
Thanks
Regards,
Sajith
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests