Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's with error 46?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
What's with error 46?
Miscellaneous
Thread ID:
01076155
Message ID:
01076155
Views:
58
I am in the middle of converting a financial app written in FPW26 to VFP8 under XP. I made my own library of form classes from the original screens and all that, but sometimes methods don't fire, and some classes even refused to instantiate, throwing up an error 46 dialog ("Expression evaluated to an illegal value").

Through manual editing of individual objects from the class definition in the VCX (and learning along the way that the reserved2 field in the first record of the class definition contains an object count that MUST be updated!), I eventually isolated the cause of the error to something left over from the old screen, an entry calling a nonexistant function in the NumberofElements property of combo boxes.

I would expect this to cause a "function not found," not "illegal value!"

Has anyone else observed problems with VFP 8 returning an error that is less than accurate?
Next
Reply
Map
View

Click here to load this message in the networking platform