Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid column misbehaviour
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement