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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by longda

  1. longda

    Unmap drive to unc question

    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...
  2. longda

    Incorrect results using exponentiation with the INT() function

    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...
  3. longda

    Incorrect results using exponentiation with the INT() function

    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...
  4. longda

    Incorrect results using exponentiation with the INT() function

    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...
  5. longda

    Incorrect results using exponentiation with the INT() function

    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 ...
  6. longda

    How do I save a Word file to Oracle BLOB?

    We have used the VFP function CREATEBINARY() for using PDF's on the web. Maybe this will help you out. Dave L.
  7. longda

    Can you set the resource file in config.fpw

    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...
  8. longda

    Can you set the resource file in config.fpw

    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...
  9. longda

    Can you set the resource file in config.fpw

    This worked. I tried it in a test app and it worked fine. Thanks
  10. longda

    Can you set the resource file in config.fpw

    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.
  11. longda

    Index on Buffered table

    Maybe you should try recreating the index for the table. May be this would help you out. Dave L.
  12. longda

    _pagetotal not working on report created in 6 and saved in 8

    Rick, No, it still did not work. I am lost as to why this happens. Thanks, Dave L.
  13. longda

    _pagetotal not working on report created in 6 and saved in 8

    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.
  14. longda

    _pagetotal not working on report created in 6 and saved in 8

    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...
  15. longda

    How to resume download files with VFP?

    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...

Part and Inventory Search

Back
Top