Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How do I make a hand-coded checkbox toggle?

How do I make a hand-coded checkbox toggle?

How do I make a hand-coded checkbox toggle?

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?

RE: How do I make a hand-coded checkbox toggle?

Post your code snippet and I can probably help you.
Do you have a Valid or When Clause clause?
are you issuing SHOW GETS to refresh?

RE: How do I make a hand-coded checkbox toggle?

Donna, you need to use GENSCRNX.  With GENSCRNX you can conditionally display any control on the screen.  Just place *:IF <condition> in the comment snippet of any control and the control will only be displayed if the condition is true.  

GENSCRNX is a very powerful utility and I use it in all my 2.6 apps.

Let me know if you need it.  It is freeware.

Mike Wood

RE: How do I make a hand-coded checkbox toggle?

THAT IS SO COOL!  It worked great, thank you.  We have Genscrnx but we don't have any documentation for it.  I use it a lot for the 3D box stuff.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close