Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange results in COM DLL
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00467419
Message ID:
00468427
Views:
30
>>Did you try with old plain STR()? :) Also, could it be the problem in SET DIGITS, SET DECIMALS, etc. They could be different in your DLL and your test form - just guessing...
>
>SET DIGITS?? There is no command like this in VFP. I've used STR() to display as much of the result as is possible and both values are identical. SET DECIMALS is the same. I've even tried it with SET COMPATIBLE ON and OFF (as mentioned in KB article Q247494. I've this tried on VFP 6.0 SP3 and SP4. I've tried it in the run environment and in the design enironment.

I probably meant set fixed. Well, do you have enough precision in your table? How does VFP store numbers? Have you tried to store numbers as char strings and convert them to numbers in your calculations?
>
>As near as I can figure out it: A. Only applies in a DLL and only with certain values; and B. Those values must come directly from a table. When assigning the exact same values by using literals (haven't tried memvars from a table) the DLL works as expected.

Weird. Perhaps this could be addressed as a bug.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform