Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid checkbox controlsource
Message
From
31/10/2003 19:16:02
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
31/10/2003 05:10:05
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00844814
Message ID:
00845285
Views:
26
Hi Arnold!

>If the controlsource is an expression.The column was became readonly and can't write to it's controlsource - table.myfield
>Any idea ?

Other idea is create other field in your cursor (type Logical) like above and use it in your grid, e.g.:
* Supose that your get your datas with SQL Statement and save them in Cursor.
Select *, Iif(FieldChar == "X", .T., .F.) as NewField From MyTable

* In CheckBox's Valid metod put this
If this.Value
   Replace FieldChar With "X"
Else
   Replace FieldChar With ""
EndIf
I hope this help you.
Bye!
Erick
Força Sempre!
Strength Always!
Previous
Reply
Map
View

Click here to load this message in the networking platform