Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yes/No as ControlSource
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00675429
Message ID:
00675442
Views:
7
It's still a kludge. In my case this is only for display purposes, so I like textbox and my solution better.

Thanks, I may use this idea in a future.

>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.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform