Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highest USED workarea
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00250374
Message ID:
00250399
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform