Okay Les, I tried as you suggested and got the same error.

I removed the $Name[$PU,0] and still got the error, then I removed the $a, and the error went away.

So now the question is why is $a giving me a problem... It is returned as VarType string, and it is giving me the expected result (a name)

Quote:

VarType for $a=String
Value=Cheryl





So I tried this .. $a = Cstr(PartnerSelect($PU))

Still got the error

So then I tried changing the line
$b = Willing($a)
to
$c = $a
$b = Willing($c)

Thinking that maybe the call to the Willing function was messing up $a, but that did not change the results either.

Then to further troubleshoot, I started printing $a after each step.

With that I got the expected results until I called the Willing($a) function.

Code:

Function Willing($Player)
For $ = 1 to $Count
If $Player = $Name[$,0]
$a = Split($Name[$,3],"~")
EndIf
Next
$Willing = $a
EndFunction



So I changed all of the $a in the function to $z and that has now resolved the problem.

I geuss this just goes to show that you must keep track of what variable is being passed where and doing what.

My only question then would be, I thought each function had its own exclusive variables, and would not change the variables that were used in other functions.
_________________________
Today is the tomorrow you worried about yesterday.