How to classify the values of a matriz

F

Frank Dulk

How to classify the values of a matriz, for instance,

Dim MinhaMatriz(10) as integer

After defining the values for the head office, how to come back the data in
growing order?

Does have to be in the arm?
 
M

Michel Walsh

Hi,


You have to sort the value (in ascending or descending order) using a
VBA algorithm, since VBA does not have "template" (C++) which would
consider the array as an object by itself ( as in dotNet ) on which you can
use the method "Sort". So, you have to produce your own function that take
an array as input and return a sorted array for output. QuickSort algorithm,
on Google, should return many hits. VBA Developer's Handbook, at Sybex, by
Ken Getz, also has such a method.



Hoping it may help,
Vanderghast, Access MVP
 
F

Frank Dulk

Does know where I can find?

Michel Walsh said:
Hi,


You have to sort the value (in ascending or descending order) using a
VBA algorithm, since VBA does not have "template" (C++) which would
consider the array as an object by itself ( as in dotNet ) on which you can
use the method "Sort". So, you have to produce your own function that take
an array as input and return a sorted array for output. QuickSort algorithm,
on Google, should return many hits. VBA Developer's Handbook, at Sybex, by
Ken Getz, also has such a method.



Hoping it may help,
Vanderghast, Access MVP
 
D

Douglas J. Steele

Sorry, I thought you were asking where you could purchase the VBA
Developer's Handbook Michel was recommending.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top