Search found 209 matches: fclose

Return to advanced search

Re: Error 32 al querer renombrarse un achivo

hfile toma valor, y aunque se cierre con FClose() ese valor permanece.
No hay ningun tipo de ligazón entre hFile y el fichero al que representa más que con el uso de las funciones file
by paquitohm
Thu Mar 07, 2024 1:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error 32 al querer renombrarse un achivo
Replies: 7
Views: 291

Re: Error 32 al querer renombrarse un achivo

Prueba a hacer un SysRefresh() antes del rename para darle opción a Windows a procesar tu petición:

fclose(hfile)
SysRefresh()
...
by Antonio Linares
Thu Mar 07, 2024 7:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error 32 al querer renombrarse un achivo
Replies: 7
Views: 291

Re: Data exchange between PC and Android device on the same loca

... if ($Report == false) { echo ("Error in opening new Report"); exit(); } fwrite($Report, "Print Report: Verkauf "); fclose($Report); The FIVEWIN program prepares all the data for the report and stores the data in a CSV file. PHP program is waiting: while ($x <= ...
by Arturo Lopesoria
Fri Feb 23, 2024 11:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Data exchange between PC and Android device on the same loca
Replies: 17
Views: 798

Re: Grabar imagen en tabla mysql

... PARA RECUPERAR FUNCTION EDATOS(cDAT,cNOM) cARCH=HexToStr(cDAT) ASALIDA:=".\"+cNOM hFile := FCreate(asalida) FWrite( hFile, cARCH) FClose( hFile ) RETURN NIL
by Marco Augusto
Fri Jan 19, 2024 1:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Grabar imagen en tabla mysql
Replies: 5
Views: 401

Re: Function Hb_DirExists() no permite File() ubique los archivo

... IsDirWritable(cDir) LOCAL cFileName LOCAL nFileHandle nFileHandle := HB_fTempCreate(cDir, NIL, FC_NORMAL, @cFileName) IF nFileHandle != F_ERROR fClose(nFileHandle) fErase(cFileName) RETURN .T. ENDIF RETURN .F.
by CARLOS ATUNCAR
Thu Nov 02, 2023 3:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Function Hb_DirExists() no permite File() ubique los archivo
Replies: 14
Views: 703

Conexion FTP TSL

... FSeek( hSource, 0, 0 ) nFile := 0 while ( nBytes := FRead( hSource, @cBuffer, nBufSize ) ) > 0 oFile:Write( SubStr( cBuffer, 1, nBytes ) ) end FClose( hSource ) oFile:End() return .t. //----------------------------------------------------------------------------//
by servicomver
Wed Jan 25, 2023 10:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexion FTP TSL
Replies: 7
Views: 834

Re: File Deletion problem

I don't think fclose() does anything since it requires a file handle, not a filename
by hua
Wed Jan 04, 2023 2:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: File Deletion problem
Replies: 8
Views: 754

Re: File Deletion problem RESOLVED

... That was included for the upload as variable cUpFile. Switching to that, the deletion occured. Thanks for the ideas. I have left the SysWait and FCLOSE functions in place to make the process more stable.
by TimStone
Tue Jan 03, 2023 7:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: File Deletion problem
Replies: 8
Views: 754

Re: File Deletion problem

Hi friend.

Can you try ..

Fclose (cTxtfile)

Before érase.

Regards

José

Enviado desde mi Lenovo TB-J606F mediante Tapatalk
by jvtecheto
Mon Jan 02, 2023 8:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: File Deletion problem
Replies: 8
Views: 754

Generar table temporal

... leer "+cSQLP ) showError( oErr ) wtxt = "errorge.txt" cHandeg = FCREATE ( wtxt ) FWrite ( cHandeg, cSQLP + chr( 13 ) + chr( 10 ) ) fclose(cHandleg) RETURN NIL END TRY Saludos Jorge
by jpcavagnaro
Thu Aug 04, 2022 2:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Generar table temporal
Replies: 3
Views: 347

Re: Facturacion TicketBai

... --header "authorization: xxxxxxxxxxxxxxxxxxxx" --data-binary @'+cFileName+' https://'+cURL+' --output '+salida+' -D '+headers+' -v' ) FClose(m) //----------------------------- WaitRun("LROE.bat",0) CursorWait() Donde: header "authorization: xxxxxxxxxxxxxxxxxxxx" ...
by landaga
Wed Dec 15, 2021 7:27 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Facturacion TicketBai
Replies: 8
Views: 1226

Re: Guardar y Recuperar Imagen Tdolphin

... y luego para recuperarlo, lo descomprimo: nHandle:=FCreate(cTempZip) FWrite(nHandle,bFOTOS:fotografia,Len(bFOTOS:fotografia)) FClose(nHandle) aFiles:=hb_GetFilesInZip(cTempZip,.t.) Hb_UnZipFile(cTempZip,,.T.,,cTemp,aFiles[1],NIL) cFoto:=cTemp+aFiles[1,1] Espero te sirva... ...
by TOTOVIOTTI
Wed Nov 10, 2021 12:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Guardar y Recuperar Imagen Tdolphin
Replies: 3
Views: 442

Re: Mem Files

... $ Chr(195)+Chr(204), 14+cVarRec, 22 ) Fseek(nMemHandle, nMemCount, 1) aadd(aVar,{cVarName,cVartype,cVarRec,nMemCount}) EndDo xbrowser avar Fclose( nMemHandle ) return nil
by Silvio.Falconi
Fri Oct 08, 2021 7:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mem Files
Replies: 11
Views: 727

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... If( ( nHandle := fcreate( cPath+'TRA.xml', 0 ) ) == -1 ) MsgStop( 'NO se pudo crear TRA.xml',' ERROR' ) Return( .F. ) Else fWrite( nHandle, cXml ) fClose( nHandle ) End cCmdSign := 'openssl smime' +; ' -sign' +; ' -in ' + cPath+ 'TRA.xml' +; // Archivo XML a Firmar ' -out ' + cPath+ 'TRA.tmp' +; ...
by dhf27
Tue Sep 28, 2021 12:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... If( ( nHandle := fcreate( cPath+'TRA.xml', 0 ) ) == -1 ) MsgStop( 'NO se pudo crear TRA.xml',' ERROR' ) Return( .F. ) Else fWrite( nHandle, cXml ) fClose( nHandle ) End cCmdSign := 'openssl smime' +; ' -sign' +; ' -in ' + cPath+ 'TRA.xml' +; // Archivo XML a Firmar ' -out ' + cPath+ 'TRA.tmp' +; ...
by rterraz
Thu Sep 23, 2021 1:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989
Next

Return to advanced search