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!

Search results for query: *

  1. wadesnj

    Week Number Calculation - modified ISO

    Many thanks for your excellent function TheRambler. I have tested it for all the relevant dates in our production calendar for 2004, 2005, and 2006 and all weeknumbers are correct! I spent ages trying to find a modified ISO function that worked, and didn't find your source! Once again, thanks...
  2. wadesnj

    Week Number Calculation - modified ISO

    I need to calculate week numbers. We have a production week that starts on Sunday. This means that we use ISO 8601 week numbers offset by one day. In 2004 and 2005, this means that Sunday 26 Dec 2004 is the first day of week 53, and Saturday 1 Jan 2005 is the last day of week 53. Sunday 2 Jan...
  3. wadesnj

    Generate screen code causes "file access denied"

    Hi Rick No, I'm not using Genscrnx, just the built in FPD26 screen builder. But your comment re temp files has made me think - it might be something to do with file permissions. I'll check this out. I assume you mean that the screen builder creates some temporary files as part of the generate...
  4. wadesnj

    function nvl(column,replacewith) in foxpro 2.6??

    Many of us have made a very good living for many years from this "old crappy suff" !! And guess what? It still works extremely well.....
  5. wadesnj

    Printing to a PrintServer from FOXPro 2.6

    I use an excellent third party program called Dosprint. This allos me to redirect all printer output to a shared spooler folder as text files. Then each network user has a copy of Dosprint installed that can print the text files to any Windows printer. This gave my ancient FPD2.6 app a new lease...
  6. wadesnj

    Generate screen code causes "file access denied"

    When I try to generate the spr file from my screen code, I get a "file access denied" error message and the file is not generated. If I build a complete new app, the spr is regenerated correctly. This happens if I delete the spr file first, or leave the old version. This has only been...
  7. wadesnj

    Can an image be placed on the desktop?

    Sorry, should have clarified. I would like no border or title as Mike suggests, but also would like non rectangular display, e.g. round or tool-tip shaped "form" into which I can put messages from my running app, which doesn't have to be visible i.e. might be running in the background. I believe...
  8. wadesnj

    Can an image be placed on the desktop?

    In a VFP project which has screen=off and 1 top level form, is it possible to load and display an image file (.bmp,.jpg etc.) on the Windows desktop? I found some excellent code on Foxite to load and display image files on a VFP form, but it does not work on the win desktop. I wanted to put...
  9. wadesnj

    Muliple user and performance

    My Foxpro 2.6a for DOS application with around 30 concurrent users was running on Windows 2000 server with XP workstations and was rather slow. Migrated the application and data to a new Linux server and used Dosemu and putty for the user terminals. There was a vast improvement in speed and...
  10. wadesnj

    REPLACING fields - what is the fastest method?

    I've just tested ThuVan's method of creating a single replace (or blank fields) statement, and it is much quicker - < 10 seconds to replace 1011 records from 38,294. This was the routine: _COMM = &quot;BLANK FIELDS &quot; FOR x=32 to 242 IF x <> 33 AND x <> 193 && Do not clear field 33 or...
  11. wadesnj

    REPLACING fields - what is the fastest method?

    I've now tested this, the biggest improvement is with the use of BLANK FIELDS (FIELD(x)). This is the routine now: goto mStartrec SCAN REST FOR Invlines.Date <= Menddate FOR x=32 to 242 IF x <> 33 AND x <> 193 && Do not clear field 33 or 193...
  12. wadesnj

    REPLACING fields - what is the fastest method?

    I can see the logic in saying that a single replace statement operating on many fields should be quicker - but won't I run into the problem of statement length? Surely I will exceed the maximum number of characters with over two hundred field names in the statement?
  13. wadesnj

    REPLACING fields - what is the fastest method?

    Thanks, all, for the suggestions, will try out and benchmark. I think a combination of SCAN REST...ENDSCAN, BLANK FIELDS, and less calls to the progress bar will be the fastest way.
  14. wadesnj

    Replacing fields - what is the fastest method?

    Thanks all - I think the use of SCAN REST and less calls to the progress bar will probably be the best improvement. I'll give it a try tomorrow and let you know.
  15. wadesnj

    REPLACING fields - what is the fastest method?

    This originally posted in FPD area, but I use the same routine in VFP 7 apps. I have a 40,000 record Foxpro 2.6 table. It has 244 fields and is 67Mb in size. I want to selectively clear the values in about 200 fields in 2000 records conditional on a date range. My code at present looks like...
  16. wadesnj

    Replacing fields - what is the fastest method?

    I have a 40,000 record Foxpro 2.6 table. It has 244 fields and is 67Mb in size. I want to selectively clear the values in about 200 fields in 2000 records conditional on a date range. My code at present looks like this: goto mStartrec && The first matching line is already located...
  17. wadesnj

    Double Click Drill Down in Grid Control

    Thanks Mike, that would do the trick, although I imagine changing the class for each column after using the builder (which I use a lot) would take as long as sticking 'do drilldown' in each doubleclick method. Shame there isn't a row object with its own doubleclick method!
  18. wadesnj

    Double Click Drill Down in Grid Control

    I wish to allow the user to double click on a grid row to show linked records in another table to a key field in the grid's table. At the moment I have a separate command button on the grid form that calls the drill down procedure, but to double click on the actual row would be simpler. The...
  19. wadesnj

    View, Toolbars is greyed out

    When I run my app from the project manager, the view, toolbars menu item is greyed out so I can't open the report designer or report controls toolbars. The standard toolbar is displayed correctly. What is going on?
  20. wadesnj

    Doing Time Calculations

    What is the best way to store time values and do calculations on them? Obviously datetime is best storage type, but can I use just the time portion and do time math, i.e. subtract start time from end time etc. and get hours/minutes?

Part and Inventory Search

Back
Top