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!

Search results for query: *

  1. porteiro

    Preventing memory leaks

    Very helpful post indeed. Thanks for sharing, Stretchwickster. Cheers, Porteiro
  2. porteiro

    error reading a line from text file - 4096 limit?

    Justin I once had the same problem, tried a lot of settings and kludges, but to no avail. If you just need the data in a string do as did var tf: TextFile; s: string; AssignFile(tf,YourFileName); Reset(tf); ReadLn(tf,s); CloseFile(tf); s will have the entire line here. HTH...
  3. porteiro

    Documents and settings

    Michael, I've just checked it and the Win9x family of OSs doesn't set the USERPROFILE environmental variable, and for this reason the code snippet I sent you doesn't work. You must check the OS running and take the proper path then. Porteiro
  4. porteiro

    Documents and settings

    I don't know of any other means of getting the docs and settings path. As to the %USERPROFILE% env var you can use the code below as a starting point: SetLength(sVarValue,255); GetEnvironmentVariable('USERPROFILE',PChar(sVarValue),255); SetLength(sVarValue,StrLen(PChar(sVarValue)))...

Part and Inventory Search

Back
Top