Dear Fellow Programmers,
We are experiencing an annoying problem with VFP 6.0. When we encounter a
'numeric overflow. data was lost' error in our code (for instance, performing
the dreaded divide by zero operation,and then using gather memvar to save the
resultant to a numeric field) we find VFP locks up and fails to respond. I
know we should probably be coding to prevent these occurances, but the fact is,
unless you code from the beginning to locate such occurances, this would be
painfully difficult. This is especially so in our applications which interface
with 3d Party Data that is often dirty. I remember reading a while back a
workaround using MSVCRT20.DLL and using the _fpreset function, however that
doesnt seem to be working.
I guess what I am asking is this.. IS that the proper fix? perhaps I am
executing the code wrong... is there a better way? Our code is as follows:
DECLARE _fpreset IN msvcrt20.dll
Any help in this matter would be greatly appreciated.