Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NTOF Function

Status
Not open for further replies.

amrmnabil

MIS
Jun 2, 2017
10
EG
Does any one know NTOF function and what does it do?
 
Where do you see it? Can you give us a line of code?
NTOF is not a native VFP function, so it may be a custom procedure somewhere. If we could see how it's used, it would be more helpful.


Best Regards,
Scott
MSc ISM, MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"I try to be nice, but sometimes my mouth doesn't cooperate.
 
This just reminded me of MTON() and NTOM(), conversion from currency to numeric and vice versa.
But no, I don't know NTOF(), it's not native, but it may be a user-defined function in your code.

Set a breakpoint, execute and then step into it and you'll find the definition. It's likely a function doing an unnecessary conversion from numeric to float. While VFP DBFs differentiate between currency, integer, numeric and float and store these numbers differently within the DBF file, in memory variables VFP only uses double floats.

Bye, Olaf.

Olaf Doschke Software Engineering
 
Thanks guys for your reply.

Olaf, That probably is the case. Thanks very much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top