Hello Jerry, ----- Original Message ----- >From: "Jerry Finuliar" <jerryfinul...@operamail.com> >To: harbour-users@harbour-project.org >Sent: Tuesday, April 6, 2010 9:47:36 PM >Subject: [Harbour-users] TempName? > >Hi, > >This function is from funck(y) fTempName("t*.tmp"). >Is there a function in Harbour nearly like this?
In Harbour you have: nFh := HB_FTempCreateEx( @fileName, [cDir], [cPrefix], [cExt], [nAttr] ) returns "nFh" which is the file handle for the new created file. "fileName" is the file name and is returned by reference. "cDir" is the path used to create the file. (you can use HB_DirTemp() here as parameter). "cPrefix" is the file name prefix desired. "cExt" is the file name extension desired. "nAttr" is the file attribute. Note that if you need to use the fileName as the file name for another process, you need to close the file handle returned: FClose( HB_FTempCreateEx( @fileName, NIL, NIL, ".dbf" ) ) best regards, Teo _______________________________________________ Harbour-users mailing list (attachment size limit: 40KB) Harbour-users@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour-users