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 strongm 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 Gary Sutherland

  1. Gary Sutherland

    Extracting an Address from a Postcode input

    I've written a system for this using the Royal Mail PAF files. If you're going to be storing the PAF data locally then you'll need to cater for around 15-20 lookup tables because there is so much data.
  2. Gary Sutherland

    VFP Issue with date selection 1/1/25 returns 1/1/1925

    Foxpro has always had problems with ambiguous dates. I use SET DATE BRITISH to force dd/mm/yyyy display format.
  3. Gary Sutherland

    Windows 11 - any problems noted?

    I've found the screen scaling messes with the positioning when sizing forms, etc, when programming.
  4. Gary Sutherland

    form still continues even if one object.INIT fails

    Do you have any program code in the form's Init event? G.
  5. Gary Sutherland

    Strip leading characters from a string

    This sequence seems to do what you want. lcTest="FA007074000" ? lcTest && FA00707400 lcTest=IIF(LEFT(lcTest,2)="FA",SUBSTR(lcTest,3),lcTest) ? lcTest && 00707400 lcTest=LTRIM(lcTest,1,"0","") ? lcTest && 707400 G.
  6. Gary Sutherland

    Maximum file size when using FGETS

    No problem, Colin. I'm constrained in part by the application I have to integrate this with. Regards Gary
  7. Gary Sutherland

    Maximum file size when using FGETS

    Yes, the customer for whom I'm developing the software has purchased a license for the PAF file. There is also a set of sample files (much smaller) that are freely available to download. Any, thanks for all the replies and the interesting background. The software is finished and on-site...
  8. Gary Sutherland

    Maximum file size when using FGETS

    Thanks Chris, much appreciated. Regards Gary
  9. Gary Sutherland

    Maximum file size when using FGETS

    That would be neater, I agree, Chris. I'll take a look at doing it that way, Regards Gary
  10. Gary Sutherland

    Maximum file size when using FGETS

    Ah, that probably explains it, then, Chris. The PAF.CSV file is roughly 2.5gb in size. Thanks. I guess I'm going to have to split the CSV file and import each file sequentially. Edit: I found a utility called Huge CSV Splitter that appears to have done the job. Regards Gary
  11. Gary Sutherland

    Maximum file size when using FGETS

    Large CSV files is a topic that has cropped up before, I know, but I can't find a reference to this particular problem. I'm writing a tool import address data from the UK PAF.CSV postcodes/addresses file. This is a CSV file containing (at present) 31,827,747 individual UK postal addresses. I'm...
  12. Gary Sutherland

    debugger not stepping through code step by step

    My usual practice is to execute the following commands at the point where I want to begin debugging. SET ASSERT ON ASSERT .F. Regards Gary
  13. Gary Sutherland

    Open a jpg, mod jpg, close and save jpg

    I don't know if this helps but I've needed to display image files on a number of occasions when developing software. I store the path and filename of the image in a table text field. When I want to view it I make this call: llRetVal=(WinShellExecute(lcFileName)>31) That executes the following...
  14. Gary Sutherland

    delete missing operand

    Although SELECT SQL does respect the SET DELETE filter setting. Regards Gary

Part and Inventory Search

Back
Top