Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check box value
Message
From
06/12/2004 05:38:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/12/2004 05:05:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
00967070
Message ID:
00967075
Views:
14
>Help please!
>I have a check boxes in one of my culumns in grid.
>I want that the value will be .t./1 or .f./0, but most of the check boxes in the grid is full with square.
>When I press on the square I get value .f./0, pressing agin giving the value .t./1.
>It's more strange since it's only in most of the check boxes.
>I did a command button calld 'Mark all' with the following code:
select crsrgrid
>scan
>	replace crsrgrid.tochange with .t.&&crsrgrid is the record source of the grid.
>endscan
>thisform.cmlaborig.refresh()
, but there is not any change in the grid.
>What can I do?

Chaim,
Instead of scan..replace..endscan :

select crsrGrid
replace all tochange with .t.

or:
update crsrGrid set tochange=.t.

Is that a readwrite cursor? Did you make sure checkbox is visible (you seeing it doesn't mean it's - ie: added with addobejct but not set vsible=.t.)?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform