For a simple example, pass a string in the following format.

0000110.00,0000120.00,0000130.00

Parse the value, this one has 3 but could have any number of string values, 0000110,00 0000120.00 0000130.00, convert to floating point numbers, add the 3 together together and divide by the number of values (i.e. compute the average) and put the average back into the string, and set the return value to .T.

Have a 2nd function in the same DLL that will return the largest value (max).

Thanks, Cliff.

0000110.00,0000120.00,0000

Parse the value, this one has 3 but could have any number of string values, 0000110,00 0000120.00 0000130.00, convert to floating point numbers, add the 3 together together and divide by the number of values (i.e. compute the average) and put the average back into the string, and set the return value to .T.

Have a 2nd function in the same DLL that will return the largest value (max).

Thanks, Cliff.