Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highest USED workarea
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00250374
Message ID:
00250399
Vues:
21
>I've not done it, but you could do an AUSED() and then an ASORT on column 2. The last element would hold the highest used work area in column 2... I think?
>
>M.
Hmmm.... Can't ASORT on column 2. I guess at that point you'd need to spin through and manually find the highest value. They appear to be in the array in descending order, but I wouldn't count on that.
nHighestWorkArea = 0

FOR x = 1 to ALEN(aWorkAreas,1)
	IF aWorkAreas[x,2] > nHighestWorkArea
		nHighestWorkArea = aWorkAreas[x,2]
	ENDIF
ENDFOR

** nHighestUsedWorkArea holds highest value
Marty Smith, CSQE
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform