I read the faq184-3137 about using the WnetGetConnection api call. This is cool and all but I was using the adir function with the "V" flag to return the volume name. If it is a mapped drive it returns the unc path as the volume name. I am not to familar with the difference between volume name...
Thanks for all your help with this issue. After reading your last reply Tony, I did a search for "numeric precision" in the VFP help. The first result was the "numeric data type" for VFP. If you read this it even states that floating point calculations may produce wrong results. Then they pass...
Tony thanks for the explanation. I looked up the FLOOR() and CEILING() functions in VFP and tried them instead of the INT function. The CEILING() gave me the correct answer and the FLOOR() gave me the same as the broken INT(). I remember doing this kind of thing in math class having to draw a X...
It is still returning the wrong value regardless. Here is a more simplified example:
SET DECIMALS TO 2
? INT(4.9811 * (10^5))
? 4.9811 * (10^5)
The above code will work and both integer portions of the answers will be 498110
SET DECIMALS TO 4
? INT(4.9811 * (10^5))
? 4.9811 * (10^5)
The...
We have just encountered a problem with using exponentiation inside the INT() function with regards to the SET DECIMALS setting. Below is sample code for you to try in your command window.
SET DECIMALS TO 2
l_nNewValue = 4.9811
? INT(l_nNewValue*(10^5)) / (10^5) = 4.9811
...
I am so glad that my one brain fart is going to be used as the epitome of stupid questions. Well on the bright side at least others who read this thread will try to solve the issue themselves which will help contribute to their own problem solving skills. So in effect this is actually a very...
Craig,
Thanks for the suggestion of trying it before hand. I did but I had used "RESOURCE TO=C:\temp.dbf" in the config. This did not work. It did not dawn on me to use "RESOURCE=C:\temp.dbf" until after I posted because what I had posted was actually a typo from my config...
I know that I can use RESOURCE=OFF in the config.fpw, but is there a way I can set which resource file to use in the config.fpw.
Maybe something like this:
RESOURCE=C:\temp.dbf
RESOURCE=OFF
I want to be able to set where the resource file is but not use it right away.
Thanks
Dave L.
Bart,
There is no code to copy. I simply added a field on the report and put the _pagetotal variable in it. I typed it in and got an error. Then I went through the field dialog boxes and selected it from the list of system variables and I got the error again.
Thanks
Dave L.
I have a couple of reports that were created in VFP 6 and now we are changing over to VFP 8. When I add the _pagetotal variable to a VFP 6 report and save it in VFP 8 and rebuild the .app file I get an error message when the report is ran. There error is "_pagetotal variable not...
I would like to create a download manager using VFP because a broadband connection is not available in my area. Many of the download managers I have seen on the web are able to resume a download if it is interrupted some how. I wanted to try and create one using VFP because I thought it would be...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.