Burnsc,

i just so happened to be posting a reply to another thread about GetINI() when i saw your post, both in the UDF and here.

it seems that you have a different version of code than what is posted in the UDF VS what you are posting here, especially in regards to the exit() return codes. i am seeing "$getini= 2 exit" in your code, and this could be the source of your problems.

GetINI is a recursive UDF, meaning that it calls it self for each section if no section is given in the first call.

I would suggest that you not return error codes in your data return, but set @error to equal what you want the error code to be by using the exit(#) command.


Bryce