Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with the valid of a checkbox in a grid
Message
From
17/04/2008 05:59:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/04/2008 00:16:03
Chris Sund
Silhouette Solutions
Utah, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Miscellaneous
Thread ID:
01311365
Message ID:
01311389
Views:
17
Chris,
That is a bug. Workaround exists however (but a weird one). I wouldn't use a set filter but recordsourcetype of 4 and a recordsource as SQL. ie:
*grid2.init
this.RecordSourceType = 4
text to this.RecordSource noshow pretext 15
select * from counties
 where stateID in
 (select stateID from myStates where lChecked)
 into cursor crsCounties
endtext
And workaround:
WITH thisform.grid2
 .RecordSource = .Recordsource
 .SetFocus()
ENDWITH
this.SetFocus()
According to documentation you shouldn't be able to call SetFocus from within valid, looks like a new bug is introduced. I'd move the code to interactivechange and add a line:
this.Value = this.Value
WITH thisform.grid2
 .RecordSource = .Recordsource
 .SetFocus()
ENDWITH
this.SetFocus()
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