FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour filecopy not run
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

filecopy not run

Posted: Fri Sep 07, 2018 04:49 PM

i made
cImgPath := ".\images\"
Filecopy( lfn2sfn(rtrim(EL->ELIMGLIB)), cImgPath+cFileLib)

sometimes save the file but many times not save any files

any solution ?

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: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: filecopy not run

Posted: Sat Sep 08, 2018 08:24 AM
Silvio,

I'm using path-vars.
Never noticed any problem

c_path := cFilePath(GetModuleFileName( GetInstance() ) ) // Main-path
c_path1 := c_path + "IMAGES\"
c_path2 := c_path + "CAPTURES\"

oImage:LoadBmp( c_path1 + cImage )


regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: filecopy not run

Posted: Sat Sep 08, 2018 09:32 AM

yes Uwe

my problem is another

I explain you

when an end user wants to insert an image he selects the image from his computer in any part or from his usb stick and inserts the name and image in the ELIMGLIB field of the item.dbf archive. the procedure must copy this file from the source and must save it in the folder. \ images \ which is in the root of the EXE program and then in the ELIMGLIB field it must save the new connection ie. \ images \ image.png

To copy the image file from the computer to the folder. \ Images \ I tried the filecopy () function but there are problems and last night I found in the folder fivewin (gallery) a procedure called copyfiles that seems to work better but has a 'interface with a dialog I wanted to try if you can remove this dialog and call the copying function directly but for now I can not waste time enough.

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