FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour multiple files names
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
multiple files names
Posted: Sun Jun 12, 2016 09:09 AM

I have scanned many files, the operation is fast because where I work we have a multiple scanners and it's possible that some files will be saved with the previous file name because I have given the name with the current date and time as I can solve in order to have different names for all the scanned files

I made

Local dTime := (VAL(LEFT(Time(),2)) * 100) + VAL(RIGHT(Time(),2))
Local nomefile :=DtoS(Date())+alltrim(str(dTime))+"noname.JPG"

how I can resolve it ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: multiple files names
Posted: Mon Jun 13, 2016 01:58 AM

TTOS(DATETIME())+cValToChar(HB_RandomInt(9)) + ".jpg"

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: multiple files names
Posted: Mon Jun 13, 2016 07:25 AM

thanks Mr Rao

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion