@td gives /OV

Jose Lerebours fpgroups at gmail.com
Fri Apr 14 06:12:12 PDT 2017


On 04/14/2017 08:54 AM, Robert Repko via Filepro-list wrote:
> I know what the code is doing I wrote the program, if it returns a negative number I adjust it from there. I do that routine all time on a different server with no errors.  The question is why does @td return /OV
>
>
I do not even recall if filePro will look at mid(@td,"1","2") as numeric 
thus being able to do math reliably.  That said, have you tried 
something like:

aa(2,.0)=mid(@td,"1","2"); aa=aa-"6"  ?????

This will ensure that mid(@td,"1","2") is a true number and should 
filePro change how it handles operations such as what you use, your code 
is in the safe ... no time bombs!!!

We all know /OV means "overflow" ... So, what happens if "04" is not a 
number but a literal string?

If you use it all the time and have it spread throughout your code, what 
results are you getting else where?

-- 
Jose D. Lerebours
954-559-7186
https://www.cargosaas.com
http://www.ezbookeep.com
http://www.ezdaemon.com
http://www.fp2php.com



More information about the Filepro-list mailing list