Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Type Mismatch and I cannot find it.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00671836
Message ID:
00671988
Views:
18
>Hi Nadya,
>
>Thanks for the coding tip.
>
>I think I found my problem. The DBF is named AGENCY.DBF and the first field in the DBF is named AGENCY Char 2. When I got the error and went into debugger and looked in the LOCALS window I saw AGENCY was TYPE "O" for object. It did not list the field AGENCY as TYPE "C" for character. This must be why I get the data type mismatch error. Also, AGENCY field is one of the indexed fields.
>
>Now I have to figure out how to get around it without changing the names of the DBF or the field because many apps use the AGENCY DBF.

I think, you instantiate an object with the name Agency earlier in the program (may be in the main program). If you want to reference field value, you can use Agency.Agency syntax. If you want to have a variable m.Agency, you have to release your Agency object first. I'm not sure, how would it affect the whole application.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform