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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make a hand-coded checkbox toggle?

Status
Not open for further replies.

scuttleButt

Programmer
May 17, 2000
44
US
I am working in FoxPro 2.6a.  I hand-coded a checkbox, meaning I use the @ command for checkboxes instead of using the checkbox tool in the screen builder.  I wanted the check box to appear only under certain circumstances.  I can get the checkbox to show up and I can get it to have an "X" in it or not initially; however, when I click on the checkbox the "X" doesn't turn on or off and the value stored in the variable in the @ command doesn't change.  Another words if I initialize it as .T., there is an 'X'.  If I click on it the "X" doesn't change and neither does the .T.  Any suggestions?
 
Post your code snippet and I can probably help you.<br>Do you have a Valid or When Clause clause?<br>are you issuing SHOW GETS to refresh?
 
Donna, you need to use GENSCRNX.&nbsp;&nbsp;With GENSCRNX you can conditionally display any control on the screen.&nbsp;&nbsp;Just place <b>*:IF</b> &lt;condition&gt; in the comment snippet of any control and the control will only be displayed if the condition is true.&nbsp;&nbsp;<br><br>GENSCRNX is a very powerful utility and I use it in all my 2.6 apps.<br><br>Let me know if you need it.&nbsp;&nbsp;It is freeware. <p>Mike Wood<br><a href=mailto:mikewood@mpwonline.com>mikewood@mpwonline.com</a><br><a href= > </a><br>
 
THAT IS SO COOL!&nbsp;&nbsp;It worked great, thank you.&nbsp;&nbsp;We have Genscrnx but we don't have any documentation for it.&nbsp;&nbsp;I use it a lot for the 3D box stuff.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top