Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Status of an "object" in 2.6a

Status
Not open for further replies.

systema

Programmer
Jan 30, 2001
10
IT
Is there a way to check if an "object" (combo,check-box,list-box,ecc...) is Enable or Disable ?
 
Hi;

I do not know of a way in FoxPro 2.x to determine the enabled status of an object. I would toggle a flag whenever I changed the status of a control.

PUBLIC llbtn
llbtn = .T.

IF something
SHOW GET rcButnpres DISABLE
llbtn = .F.
ENDIF

IF llbtn
* rcButnpres is ENABLED
ELSE
* rcButnpres is DISABLED
ENDIF

There are probably other ways, we have a lot of experts here, but this works for me.

Hope this helps.
Ed




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top