>>>>>>>Has anyone seen this?
>>>>>>>
>>>>>>>The following line occasionally returns error 11: Invalid Argument type mismatch.
>>>>>>>The line is:
>>>>>>>
>>>>>>>
nMousexPos = MCOL()
>>>>>>>
>>>>>>>I'm stumped.
>>>>>>>
>>>>>>>Walter,
>>>>>>
>>>>>>
>>>>>>MCOL(0) ?
>>>>>>
>>>>>
>>>>>What do you mean by that? I use MCOL() and it occasionally gives me an error.
>>>>>I now have trapped it in a TRY CATCH construct to prevent this from happening, but it sure don't looks healthy.
>>>>>
>>>>>Walter,
>>>>
>>>>uses MCOL(0) for active form , MCOL() is not reliable.
>>>
>>>MCOL(0) is not supported under VFP8SP1 and will produce an error 11 everytime.
>>>
>>>Walter,
>>
>>of course.
>>
>>vfpt add the 0 parameter, in VFP9, because MCOL() can fail.
>
>I understand it can fail in giving the correct value, but raising an error ?
>
>Walter,
Have you tried to capture the active form caption?
cFormName=thisform.caption
nMousexPos = MCOL(cFormname,0)
Just a thought.
Tim