Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference to active column in grid
Message
De
10/12/1999 14:21:39
 
 
À
10/12/1999 14:17:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00301906
Message ID:
00301922
Vues:
28
>>That's what I did, thanks. I had forgotten what ActiveColumn actually returns.
>
>It would be nice if there was a CurrentColumn property that actually was an object reference, by I assume ActiveColumn is the way it is to create a link between ActiveColumn and ActiveRow.

I added this method to my base grid class. If you wanted a curretColumn property, you could add one, and put this code in the Access event.
lnActiveColumn = THIS.ActiveColumn
LOCAL lnActiveColumn, loActiveColumn, loColumn

IF lnActiveColumn = 0
	RETURN .NULL.
ENDIF

FOR EACH loColumn IN THIS.Columns
	IF loColumn.ColumnOrder = lnActiveColumn
		loActiveColumn = loColumn
		EXIT
	ENDIF
ENDFOR

RETURN loActiveColumn
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform