Actually, I removed statements like Dim which saved time. Then I simply used variables from the function definition like $c and $. Even though the data returned was wrong (expected), the function ran much faster when new vars were not introduced.

[ 03. November 2003, 20:15: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/