Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column misbehaviour
Message
De
01/10/1998 09:46:13
 
 
À
01/10/1998 00:31:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00142683
Message ID:
00142791
Vues:
26
>Converting application from VFP 5.0 to 6.0, and getting an undocumented behavior. There are 15 total columns, the first and 13th both have coding:
>.DynamicCurrentControl = ;
> "iif(inlist(QuoteTmp.RecordType,0,2,3,5,6,7,8,11)," + ;
> "'Blank','Text1')"
>in the INIT() of the grid, both 'Blank' and 'Text1' are textboxes. Both columns worked fine in 5.0a, but in 6.0, if I click on a cell in the 13th column: one, or more, or all of the other cells in the column change background color ( with a white border on left and bottom ). If I click on a cell in column 1, the cell responds as it should. In talking with the local VFP programmers, they express similar experiences -- they indicated that the SPARSE attribute seemed to affect this bizarre behaviour. Since there are only two values for SPARSE -- .T. or .F. and I have tried them both and yes the .F. setting does get rid of the colors, but does not pick the correct current control as coded above. Is this a problem in VFP 6? Or is there some other cause for the misbehaviour? BTW -- others report multiple changes of SPARSE seemed to fix their example of the problem, maybe because I have two columns that circumvention doesn't work?

Sparse affects this because it is supposed to affect what control is used in non-active cells. This is its purpose as documented.

Is QuoteTmp.recordType a field in the grid's recordsource? Have you checked to see that both of your objects still exist at run time? Have you tried changing the name of 'blank' (this would strike as a candidate for funkiness because blank is a VFP word).
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform