Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Type Mismatch on READ EVENTS?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01082020
Message ID:
01082050
Views:
12
>I've been getting this odd problem for the last few days, and wonder if anybody could offer assistance ...
>
>I'm getting a "Data Type Mismatch" error, which, in itself I would normally know how to handle by looking at the line of code, but the line of code is "READ EVENTS".
>
>This error occurs under the following circumstances, and only occurs for a couple of forms in my application:
>
>Bring up Form A, which has summary information by customer. Click on a customer to bring up Form B to see information about that customer. The error now occurs if I click anywhere on Form A, even on the titlebar. (Both forms are modeless and have private datasessions)
>
>The forms where I get this problem are new, just created this week, but they're nothing special (well, not special other than causing this problem.) Both of them merely have a grid and a few methods. For all intents and purposes, I cannot see any difference between them and other simple forms I've created.
>
>Any guesses as to how I diagnose this "Data Type Mismatch" error when I can't see the line of code where the error occurs?
>
>Thanks in advance,

Add code in the Error event of both of the forms and use
Aerror(errorArray)
to trap errors! Also make sure to turn debug option on for the project before you build it.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform