Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yes/No as ControlSource
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00675429
Message ID:
00675438
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
Hi Nadya,

How about using a combo. It could be based on a simple array like:

Public Array yesnoarray(2,2)
yesnoarray(1,1)="Yes"
yesnoarray(2,1)="No"
yesnoarray(1,2)="1"
yesnoarray(2,2)="0"

I'm using the above array to pass through a boolean to a postgres table, so you colud try to change the 1 to .T. and the 0 to .F. The array could be placed in either the load or init event of your form. Other combo properties are:
BoundColumn       2
BoundTo           .T.
ControlSource    Your_table_field
Number of Elements  4
Row source          yesnoarray
RowSourceType       5 - array
Do not forget to release yesnoarray when when the form is closed.
Leland F. Jackson, CPA
Software - Master (TM)
smvfp@mail.smvfp.com
Software Master TM
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform