Jul 24, 2001 #1 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 ?
Is there a way to check if an "object" (combo,check-box,list-box,ecc...) is Enable or Disable ?
Jul 24, 2001 #2 Eguy Programmer Dec 22, 2000 566 US 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 Upvote 0 Downvote
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