Search found 89 matches: nbytes

Return to advanced search

Conexion FTP TSL

... static function SendFiles( cSource, cTarget, nBufSize, oFTP ) local hSource local cBuffer := Space( nBufSize ) local nBytes local oFile if ! File( cSource ) MsgStop( "File not found: " + cSource ) Return .f. endif hSource = FOpen( cSource ) oFile = TFtpFile():New( ...
by servicomver
Wed Jan 25, 2023 10:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexion FTP TSL
Replies: 7
Views: 1052

Read Com port

... DIALOG oDlg ; ON INIT EnableCommNotification( nComm, oDlg:hWnd, 20, 20 ) CloseComm( nComm ) return nil function InitCOMM() local cDcb, nError, nBytes local nComm := OpenComm( "COM1", 1024, 128 ) if ! BuildCommDcb( "COM1:9600,n,8,1", @cDcb ) MsgStop( "Error BUILD!" ...
by Jack
Wed Sep 26, 2018 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 3075

Re: Bajar ficheros desde una conexión FTP.

... oFile :=TFtpFile():New(cFileFTP, oFTP) oFile:OpenWrite() FSeek(hSource, 0, 0) nBufSize:=2000000 cBuffer :=space(nBufSize) do while ( nBytes:=FRead( hSource, @cBuffer, nBufSize ) ) > 0 oFile:Write( SubStr( cBuffer, 1, nBytes ) ) endd FClose( hSource ) oFile:End()
by Joel Andujo
Tue Feb 27, 2018 3:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bajar ficheros desde una conexión FTP.
Replies: 5
Views: 1398

Puerto to 485 with converter a USB ,Solucionado

... #define ONESTOPBIT 0 #define ONE5STOPBITS 1 #define TWOSTOPBITS 2 FUNCTION LeePuerto485() LOCAL nComm, cBloque Public cResultado := "" ,nByteslargo ,cTrIngPuerta001 ,cTrIngPuerta002 cTrIngPuerta001:= Chr( 0x02 ) + Chr( 0x30 ) + Chr( 0x30 ) + Chr( 0x30 ) + Chr( 0x31 ) + Chr( 0x31 ) + ...
by Busmatic_wpb
Thu Feb 08, 2018 11:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1606

Lectura de puertos seriales Solucionado.. gracias

... #define ONESTOPBIT 0 #define ONE5STOPBITS 1 #define TWOSTOPBITS 2 FUNCTION LeePuerto485() LOCAL nComm, cBloque Public cResultado := "" ,nByteslargo ,cTrIngPuerta001 ,cTrIngPuerta002 cTrIngPuerta001:= Chr( 0x02 ) + Chr( 0x30 ) + Chr( 0x30 ) + Chr( 0x30 ) + Chr( 0x31 ) + Chr( 0x31 ) + ...
by Busmatic_wpb
Tue Feb 06, 2018 11:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2502

Ports to 485 with converter USB, please help.

... nError ) ) RETURN 0 ELSE MsgRun("Puerto Seteado") ENDIF RETURN IdPort STATIC FUNCTION leer_bloque(port,n) LOCAL bloque:= SPACE(n),bcc1,nBytes,i:=1 DO WHILE .t. nBytes := ReadComm( port,@bloque) i++ IF EMPTY(bloque) MsgWait("Esperando ENQ","Espere",3) mandar_enq(port) ...
by Busmatic_wpb
Mon Feb 05, 2018 11:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1606

Lectura de puertos seriales..

... han enviado'+str(BitesSend,5),'',.5000) ENDIF cBlock=space(1024) nTry=0 do while nTry<10 // can remove this nTry if not applicable if ( nBytes := readComm( nComm, @cBlock) ) > 0 msgwait('Esperando haber si lee algo , espere'+str(nTry,5),'',.10) LogFile( "Milagros.log", cBlock) ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2502

Re: funciones de FWH y Harbour en un archivo .txt

... ReadKey()->nReadkeyCode ReadModal(<aGetList>)->Nil ReadVar()->cVarName RecCount()->nRecords RecNo()->nRecord RecSize()->nBytes RemAll(<cString>,[<xChar>])->cResult RemLeft(<cString>,[<xChar>])->cResult RemRight(<cString>,[<xChar>])->cResult ...
by rubenfernandez01
Sun Oct 22, 2017 4:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 6394

Re: funciones de FWH y Harbour en un archivo .txt

... ReadKey()->nReadkeyCode ReadModal(<aGetList>)->Nil ReadVar()->cVarName RecCount()->nRecords RecNo()->nRecord RecSize()->nBytes RemAll(<cString>,[<xChar>])->cResult RemLeft(<cString>,[<xChar>])->cResult RemRight(<cString>,[<xChar>])->cResult ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 6394

Re: funciones de FWH y Harbour en un archivo .txt

... DiskReadyW([<cDrive>],[<lOSErrorMsg>])->lIsWriteable DiskSpace([<nDrive>],[<nType>])->nBytes DiskTotal([<cDrive>])->nTotalBytes DiskUsed([<cDrive>])->nUsedDiskSpace DispBegin()->Nil DispBox(<nTop>,<nLeft>,<nBottom>,<nRight>,[<cnBoxString>],[<cColorString>])->Nil ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 6394

Re: FWH : Unicode Gets and RowSet

... and padding of Unicode strings. FW_UTF8PADCHAR( cStr, nCharacters ) --> cPartStr whose HB_UTF8LEN() is nCharacters FW_UTF8PADBYTE( cStr, nBytes ) --> cPartStr whose Len() is nBytes without invalidating the part string. It may be noted that our own legacy applications and many 3rd party ...
by richard-service
Tue Oct 04, 2016 2:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH : Unicode Gets and RowSet
Replies: 8
Views: 3131

Re: FWH : Unicode Gets and RowSet

... and padding of Unicode strings. FW_UTF8PADCHAR( cStr, nCharacters ) --> cPartStr whose HB_UTF8LEN() is nCharacters FW_UTF8PADBYTE( cStr, nBytes ) --> cPartStr whose Len() is nBytes without invalidating the part string. It may be noted that our own legacy applications and many 3rd party ...
by nageswaragunupudi
Mon Oct 03, 2016 2:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH : Unicode Gets and RowSet
Replies: 8
Views: 3131

Re: Facturacion Electronica Peru, Metodo sendBill

... Funcion para Leer ZIP ------------------------------------// function xlee(hsource) local hTarget local cBuffer := Space(4000) local nBytes, nFile := 0, nTotal := 0 local nTotSize := 0 local nBufsize:=4000 local xfile:="" hSource = FOpen( hsource) while ( nBytes := FRead( ...
by Enrrique Vertiz
Mon Aug 01, 2016 4:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Facturacion Electronica Peru, Metodo sendBill
Replies: 22
Views: 9004

Re: Error sobre una bascula

... no se ejecute más de una vez: FUNCTION LecturaPto1() Local cBuffer := Space( 30 ) static lTrabajando := .F. if ! lTrabajando lTrabajando = .T. nBytes := WriteComm(nComm,AllTrim(PARBASCULA->COMANDO)) //aquimando una "P" IF nBytes <= 0 RETURN ENDIF IF FlushComm(nComm,0) != 0 RETURN ...
by Antonio Linares
Wed Jun 01, 2016 6:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error sobre una bascula (SOLUCIONADO)
Replies: 9
Views: 2461

New FTDN November/Noviembre 2015 (FWH 15.11)

... * Enhancement: TXImage: Can now be created from resource. New data lUseGDI default .t. If set to .f., uses FI * New function FW_UTF8PADR( cText, nBytes ) * Fix: Errsysw.prg: Function SetErrorFileName(cFile) was not setting the new file name. Fixed. Thanks Mr Enrico http://forums.fivetechsupport.com/viewtopic.php?f=3&t=31583 ...
by Antonio Linares
Sat Dec 26, 2015 9:26 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN November/Noviembre 2015 (FWH 15.11)
Replies: 5
Views: 3281
Next

Return to advanced search