Search found 60 matches: cline

Return to advanced search

Re: memowrit() file type DOS or UNIX

... ) So from Linux to Windows you may do: local aLines := hb_ATokens( cText, LF ) and then create the text: cText := "" AEval( aLines, { | cLine | cText += cLine + CRLF } )
by Antonio Linares
Mon Feb 14, 2022 4:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: memowrit() file type DOS or UNIX
Replies: 6
Views: 421

Re: DBF to CSV - converter 3.1 ( Update )

Marc,

I think it can be used for the needed fielsize infos
but 3 unknown functions

aHeader = strtoarr(cLine)
cdeli = MsgSelect( { ";",","} )
builddbf(aHeader,aFieldcount,cDbf)

regards
Uwe :D
by ukoenig
Mon Aug 05, 2019 12:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to CSV - converter 3.1 ( Update )
Replies: 50
Views: 13249

Re: TXT Unix To Dos

How ?

oFile := TTxtFile():New( cFileName ) << File is Unix Code or UTF-8 not BOM

Do While !oFile:Eof()
cLine := oFile:ReadLine() // << here is the problem
? cLine
oFile:Skip()
Enddo
by miragerr
Sat Feb 16, 2019 12:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TXT Unix To Dos
Replies: 4
Views: 799

Re: Carlos Mora y la mala leche de la string concatenation

... con fwrite (menos) se mantienen practicamente iguales. ¿ No será muy costoso, en tiempo, casi como un fwrite() un bucle concatenario del estilo cLine+= cText ? Si le pones un buffer tan grande, entonces la concatenación empieza a complicar el asunto. Piensa en esta situación: tenemos un cBuffer ...
by Carlos Mora
Thu Apr 26, 2018 7:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Carlos Mora y la mala leche de la string concatenation
Replies: 20
Views: 4284

Re: Carlos Mora y la mala leche de la string concatenation

... con fwrite (menos) se mantienen practicamente iguales. ¿ No será muy costoso, en tiempo, casi como un fwrite() un bucle concatenario del estilo cLine+= cText ? El proceso finalizó y no hubo un gpf de memoria y no tuve que recurrir al colector de memoria. Saludos
by hmpaquito
Thu Apr 26, 2018 6:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Carlos Mora y la mala leche de la string concatenation
Replies: 20
Views: 4284

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

... cLine>])->oError ErrorBlock([<bErrorHandler>])->bCurrentErrorHandler ErrorLevel([<nNewReturnCode>])->nCurrentReturnCode ErrorNew([<cSubSystem>],[<nGenCode>],[<nSubCode>],[<cOperation>],[<cDescription>],{<aArgs>],[<cModuleName>],[<cProcName>],[<nProcLine>])->oError ...
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: 5707

Re: Fieldname limit to 10 char. giving problem

... oTxtFile := TTxtFile():New( cFileCSV, 0 ) oTxtFile:Skip() //skip the first line of the header while !oTxtFile:lEoF() ?StrToken( oTxtFile:cLine, 1, ";" ) ?StrToken( oTxtFile:cLine, 2, ";" ) ?StrToken( oTxtFile:cLine, <n>, ";" ) oTxtFile:Skip() ENDDO ...
by Marc Venken
Tue Oct 25, 2016 6:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fieldname limit to 10 char. giving problem
Replies: 7
Views: 1582

Re: Fieldname limit to 10 char. giving problem

... oTxtFile := TTxtFile():New( cFileCSV, 0 ) oTxtFile:Skip() //skip the first line of the header while !oTxtFile:lEoF() ?StrToken( oTxtFile:cLine, 1, ";" ) ?StrToken( oTxtFile:cLine, 2, ";" ) ?StrToken( oTxtFile:cLine, <n>, ";" ) oTxtFile:Skip() ENDDO ...
by aferra
Tue Oct 25, 2016 3:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fieldname limit to 10 char. giving problem
Replies: 7
Views: 1582

MS SQL Dumb Question

... I am doing wrong? //----------------------------------------------------------------------------- function _AesRead( oSay ) local lEof := .F. , ; cLine := "" , ; cFolder := "" , ; cOrg := "" , ; cDst := "" , ; cTmp := "" , ; nTmp := 0 , ; n001 ...
by cdmmaui
Tue May 10, 2016 10:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MS SQL Dumb Question
Replies: 0
Views: 422

Sub Niveles en Treeview ( SOLUCIONADO )

... en el item raiz (0) y del primer nivel del item (1), para poder obtener la ubicación desde de origen del recurso con la función StrToken(oTxtFile:cLine, 3) desde el archivo.RC New BITMAP "Z:\FWH\bitmaps\32x32\new.bmp" New2 BITMAP "Z:\FWH\bitmaps\16x16\new.bmp" Dialog BITMAP ...
by cuatecatl82
Tue Nov 03, 2015 4:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sub Niveles en Treeview ( SOLUCIONADO )
Replies: 8
Views: 1082

Re: txtfile

... // box trace cTitle:= "Ciclo operazioni" @ 100, 05 XBROWSE oBrwTesto OF oDlgCicloMater ; SIZE 220,80 PIXEL ; COLUMNS "cLine"; OBJECT oText; FOOTERS NOBORDER WITH OBJECT oBrwTesto:cLine :bFooter:= {|| "Linea = " + LTrim( Str( oText:RecNo() ) ) + " ...
by Silvio.Falconi
Tue Oct 13, 2015 10:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: txtfile
Replies: 3
Views: 982

Re: Migrating to Harbour

... ], * [ <nLineNumber>=1 ], * [ <nTabSize>=4 ], [ <lWrap>=.T. ], * [ <cEOL>|<acEOLs> ] ) -> <cLine> */ So it seems as it does not support the same parameters as xHarbour. We could compare xHarbour and Harbour and propose to enhance such function ...
by Antonio Linares
Sat Dec 13, 2014 5:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Migrating to Harbour
Replies: 238
Views: 44785

Re: json

... else MsgInfo(::inetErrorCode( ::SocketCon )) ENDIF ::ReadHeaders() - always return .f. METHOD ReadHeaders( lClear ) CLASS TIPClientHTTP cLine := ::inetRecvLine( ::SocketCon, @nPos, 500 ) cLine is always empty IF Empty( cLine ) // In case of timeout or error on receiving RETURN .F. ENDIF ...
by Colin Haig
Tue Aug 26, 2014 12:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: json
Replies: 3
Views: 799

Re: En tiempo de compilacion...

... ? "value * pow =", VALUE * pow WAIT ? VALUE2 // generate RTE /*** testpp.prg ***/ REQUEST __PP_STDRULES REQUEST __WAIT PROC Main() local cLine, pPP, oErr pPP := __PP_INIT() BEGIN SEQUENCE WITH {|oErr| BREAK( oErr ) } FOR EACH cLine IN hb_ATokens( StrTran( __PP_Process( pPP, ; hb_MemoRead( ...
by Antonio Linares
Tue Aug 26, 2014 7:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: En tiempo de compilacion...
Replies: 3
Views: 1552

Re: Ayuda -imprimir factura con columna texto tipo memo

... CONSOLE" nxLen := 50 nxLineas := MlCount( ::oQry:FieldGet("comentarios"), nxLen ) pRen := 3.80 + 00.20 for x := 1 to nxLineas cLine := MemoLine( ::oQry:FieldGet("comentarios"), nxLen, x ) oPrn:cmSay( pRen, 14.30, cLine, oFnt[5] ) pRen += 00.20 next saludos paco
by Francisco Horta
Wed Sep 11, 2013 3:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda -imprimir factura con columna texto tipo memo
Replies: 19
Views: 4682
Next

Return to advanced search

cron