Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: MCOL() returns invalid type mismatch
Message
From
03/08/2006 14:19:03
Judith Berry
Keystone Consulting Services, Inc.
Daleville, Indiana, United States
 
 
To
03/08/2006 08:30:08
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01142389
Message ID:
01142768
Views:
12
>>>>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform