Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange results in COM DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00467419
Message ID:
00468427
Vues:
23
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform