Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with the valid of a checkbox in a grid
Message
De
17/04/2008 05:59:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/04/2008 00:16:03
Chris Sund
Silhouette Solutions
Utah, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01311365
Message ID:
01311389
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform