How to Get Object type

Post Reply
sajith
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India
Contact:

How to Get Object type

Post by sajith »

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

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.
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to Get Object type

Post by anserkk »

Code: Select all

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
sajith
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India
Contact:

Re: How to Get Object type

Post by sajith »

Sorry i mean Say
Thanks
Regards,
Sajith
Post Reply