Jul 9, 2002 #1 lashwarj IS-IT--Management Joined Nov 1, 2000 Messages 1,067 Location US I have a check box that when clicked does the following THISFORM.TEXT1.ENABLE=.T. This works great but I want it so if the users unclicks the box it goes back to dissabled.
I have a check box that when clicked does the following THISFORM.TEXT1.ENABLE=.T. This works great but I want it so if the users unclicks the box it goes back to dissabled.
Jul 9, 2002 #2 Mike Gagnon Programmer Joined Apr 6, 2002 Messages 8,067 Location CA in the click event of the check box try: THISFORM.TEXT1.ENABLED = !THISFORM.TEXT1.ENABLED Upvote 0 Downvote
Jul 9, 2002 #3 SMCmtg Programmer Joined Mar 27, 2000 Messages 90 Location US Put in clickevent of the check box. . . IF somefield=.t. &&logic field in table thisform.sometext1.Enabled=.f. thisform.refresh ENDIF IF somefield=.f. thisform.sometext1.Enabled=.t. thisform.Refresh endif Hope this helps. Bill Upvote 0 Downvote
Put in clickevent of the check box. . . IF somefield=.t. &&logic field in table thisform.sometext1.Enabled=.f. thisform.refresh ENDIF IF somefield=.f. thisform.sometext1.Enabled=.t. thisform.Refresh endif Hope this helps. Bill
Jul 9, 2002 #4 rgbean Programmer Joined Nov 9, 2000 Messages 5,707 Location US I'd suggest (assuming the checkbox it tied to a logical value): THISFORM.TEXT1.ENABLED = this.value Rick Upvote 0 Downvote
I'd suggest (assuming the checkbox it tied to a logical value): THISFORM.TEXT1.ENABLED = this.value Rick
Jul 9, 2002 #5 Eguy Programmer Joined Dec 22, 2000 Messages 566 Location US THISFORM.TEXT1.ENABLE= IIF(THISFORM.CHECK1.VALUE=1,.T.,.F.) Ed Please let me know if the suggestion(s) I provide are helpful to you. Sometimes you're the windshield... Sometimes you're the bug. Upvote 0 Downvote
THISFORM.TEXT1.ENABLE= IIF(THISFORM.CHECK1.VALUE=1,.T.,.F.) Ed Please let me know if the suggestion(s) I provide are helpful to you. Sometimes you're the windshield... Sometimes you're the bug.
Jul 9, 2002 #6 Mike Gagnon Programmer Joined Apr 6, 2002 Messages 8,067 Location CA eguy >>THISFORM.TEXT1.ENABLE= IIF(THISFORM.CHECK1.VALUE=1,.T.,.F.) I assume you meant THISFORM.TEXT1.ENABLED Upvote 0 Downvote
eguy >>THISFORM.TEXT1.ENABLE= IIF(THISFORM.CHECK1.VALUE=1,.T.,.F.) I assume you meant THISFORM.TEXT1.ENABLED
Jul 9, 2002 #7 Eguy Programmer Joined Dec 22, 2000 Messages 566 Location US mgagnon; Does spelling count? Ed Please let me know if the suggestion(s) I provide are helpful to you. Sometimes you're the windshield... Sometimes you're the bug. Upvote 0 Downvote
mgagnon; Does spelling count? Ed Please let me know if the suggestion(s) I provide are helpful to you. Sometimes you're the windshield... Sometimes you're the bug.