Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox reacts to Y/N field
Message
De
31/01/2007 05:39:58
 
 
À
30/01/2007 17:32:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01189996
Message ID:
01190771
Vues:
9
>>However, the whole point of my initial enquiry was, essentially, how to bind a checkbox to a Y/N char field, without using code (I originally had an IIF() in the .value), via just the props. I've resorted to code and achieved it with far less than this. :-)
>
>Het Terry, try this.
>
>Set your TextBox.Format property to "M", and the .InputMask to "Y,N". It's not a checkbox, but it is a textbox that can only enter the values "Y" or "N" (and change via the spacebar) and no code is needed.

Thanks Fred

However, like I said to Mike:

In my opinion striking the spacebar with the thumb is a lot less hassle than finding either the Y or N key. On The Other Hand if the user uses the mouse then clicking the checkbox is, again, a lot less hassle than finding either the Y or N key.

I know you can use the spacebar via your trick but I want to keep it as a checkbox - looks a lot more up-to-date and sexy anyway. I've sorted this all with code now - not too involved

Cheers

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform