Search found 72 matches: hfile

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

Consulto:

Si abro un archivo con
Code: Select all  Expand view
 LOCAL hFile      := FOpen( ::cFile )
 
y luego lo cierro con
Code: Select all  Expand view
fclose(hFile)
sysrefresh()
 

y hago un fwdbg hFile, el valor de "hfile" debe ser "nil"?

porque me sigue devolvieron un valor numérico.
by goosfancito
Thu Mar 07, 2024 10:41 am
 
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: Grabar imagen en tabla mysql

... ,"AVISO") RETURN(.F.) ENDIF RETURN(.T.) 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: 398

creation of a pdf

... variable cPdf this text must taken between two quotes of an italian electronic invoice <Attachment> </Attachment> cFile-> xml file hFile := FOpen( cFile ) nFileLines := FLineCount( cfile ) i := 1 DO WHILE i <= nFileLines HB_FReadLine( hFile, @Linea ) Linea := LTrim( Linea ) cField ...
by Silvio.Falconi
Wed Dec 02, 2020 10:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: creation of a pdf
Replies: 12
Views: 1344

Re: file date and time - how to set

Hello, I think I found an example: function setfiledate(cFile, dDate) local hFile := FOpen( cFile, FO_READWRITE ) local aInfo SET DATE FRENCH SET CENTURY ON SetFTime( hFile, "13:00:00", dDate ) // MsgInfo( "D o n e !" ) FClose( hFile ) return ...
by Otto
Fri Feb 21, 2020 11:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: file date and time - how to set
Replies: 12
Views: 1557

XML help

... </Schs> </Transaction> /********* Sample Code /********* nXmlMax := LEN(aXmlFile) cXmlFile := aXmlFile[nXmlMax,1] cStart := TIME() hFile := FOpen( cSource + cXmlFile ) oXmlDoc := TXmlDocument():New( hFile ) oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ) WHILE .T. oTagActual = oXmlIter:Next() ...
by cdmmaui
Thu Jun 06, 2019 12:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XML help
Replies: 2
Views: 491

Re: TFBuffer, una clase para acelerar la escritura en ficheros

... me parce muy buena, me refiero a hacer una clase buffer desacoplada de ficheros. Para eso sólo habría que cambiar dos cosas: 1.- El parámetro hFile 2. Y convertir el metodo ::flush() en Virtual y desarrollarlo en las clases heredadas y especializadas. Con esto conseguiríamos una clase TStringBuffer() ...
by xmanuel
Mon May 07, 2018 5:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TFBuffer, una clase para acelerar la escritura en ficheros
Replies: 7
Views: 2233

Re: problem with read from xml file

... break Endif mTekst:="" @ 100,20 SAY oTEKST var mTekst OF oDlg PIXEL SIZE 150,12 dd:=day(date()) mm:=month(date()) rr:=year(date()) // hFile := FOpen( cFileName ) oXmlDoc := TXmlDocument():new() // HBXML_TYPE_CDATA HBXML_STYLE_NOESCAPE oXmlDoc:read( Memoread( cFileName ) ) // oXmlDoc:read( ...
by kajot
Thu Jan 19, 2017 9:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem with read from xml file
Replies: 17
Views: 3572

Re: Facturacion Electronica Peru, Metodo sendBill

Luis, lo que recibes es un archivo ZIP en Base64, hay que hacer la operación inversa y después descomprimirlo para leer el contenido.

hFile := FCreate( cResSun, FC_NORMAL )
FWrite( hFile, Base64ToStr( cTxtSun64 ) )
FClose( hFile )
by Enrrique Vertiz
Tue Aug 02, 2016 4:59 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Facturacion Electronica Peru, Metodo sendBill
Replies: 22
Views: 8334

XML Read Problems

... } } } REQUEST DBFCDX REQUEST DBFFPT //----------------------------------------------------------------------------- function Main( cQuery ) local hFile , ; oXmlDoc , ; oXmlIter , ; oTagActual , ; nItems := 0 , ; cTagName := "" , ; cTagData := "" , ; cMtsn := "" , ...
by cdmmaui
Tue Apr 26, 2016 1:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XML Read Problems
Replies: 1
Views: 1055

Re: Preview of a file

AntoninoP wrote:The CloseHandle( hFile ); in HB_FUNC( ADDPREVIEWC ) does not allow to pdf previewer to read the file.
It is because you don't view the pdf preview.

In case of pdf, the preview is created from the stream not the file. In that case, why would the previewer require the file to be open?
by nageswaragunupudi
Mon Jul 20, 2015 8:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Preview of a file
Replies: 43
Views: 20152

Re: Preview of a file

The CloseHandle( hFile ); in HB_FUNC( ADDPREVIEWC ) does not allow to pdf previewer to read the file.
It is because you don't view the pdf preview.
by AntoninoP
Mon Jul 20, 2015 7:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Preview of a file
Replies: 43
Views: 20152

Re: Factura Electronica Argentina - XML de la AFIP

... recorrer el XML e ir tomando los valores segun cada TAG, aqui lo adjunto, espero te sirva #include "FiveWin.ch" function Main() local hFile := FOpen( "test.xml" ) Local oXmlDoc := TXmlDocument():New( hFile ) Local oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ), oTagActual ...
by Enrrique Vertiz
Fri Jul 17, 2015 12:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Factura Electronica Argentina - XML de la AFIP
Replies: 6
Views: 1337

Re: DIREFENCIA ENTRE HARBOUR/XHARBOUR

... := 30 // Set operation support hVar1 := hVar - { dDate => 0 } // removing dDate key For more deails, see doc/hash.txt XML Support: ------------ hFile := FOpen( cFileName ) xmlDoc := TXmlDocument():New( hFile ) xmlNode := xmlDoc:oRoot:oChild cXml := xmlNode:Path() // there are methods to find ...
by Antonio Linares
Sun Jul 12, 2015 9:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: DIREFENCIA ENTRE HARBOUR/XHARBOUR
Replies: 4
Views: 2282
Next

Return to advanced search