Search found 70 matches: mlcount

Return to advanced search

Re: Create a Panel width a text

If you call the function MLCount() you know before how many lines your memo has. DEFINE BRUSH oBrushshadow GRADIENT aGrad //shadow DEFINE BRUSH oBrushtext GRADIENT aGradtext //text nTotRows:= MLCount(Alltrim(cmessage),250) oPanel1 is ...
by Silvio.Falconi
Thu Jan 04, 2024 10:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3165

Re: Create a Panel width a text

If you call the function MLCount() you know before how many lines your memo has.
by Detlef
Fri Dec 29, 2023 2:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3165

Re: How to read a unicode TXT file

... hasta cuando lo muestro en un xbrowse hf := memoread( cFilePath( exename() ) + "doc\1.txt" )   FOR x = 1 TO MLCount( hf )      cLinea:= MemoLine( hf,,x,.t.)      AAdd(a, cLinea)   NEXT   XBROWSER a Look at the second parameter of MLCount() ...
by Enrico Maria Giordano
Fri Oct 01, 2021 2:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to read a unicode TXT file
Replies: 6
Views: 1183

Re: Cuenta erronea de lineas en txt

Todas sus sugerencias funcionan.
Efectivamente, Notepad++ muestra todos los caracteres.

nTotRows:= MLCount(Alltrim(cBuf),250)

nTotRows:= oFile:nTLines

Muchas gracias.
by FranciscoA
Sat Jan 23, 2021 4:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cuenta erronea de lineas en txt
Replies: 7
Views: 776

Cuenta erronea de lineas en txt

... tipo de separador. Si lo abro con un editor de texto, refleja correctamente la cantidad de lineas, pero no lo hace con las funciones MemoRead y MLCount. Aqui está el código que estoy usando, y su respectivo fichero.txt. Qué estoy omitiendo? #include "fivewin.ch"Function Main()local ...
by FranciscoA
Fri Jan 22, 2021 11:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cuenta erronea de lineas en txt
Replies: 7
Views: 776

COMO ABRIR UNA WEB CON CHROME

... ) TRY *cCode := oIE:Document:body:innerHtml() cCode := oIE:Document:body:innerText() CATCH oError WaitOff( @oWait ) RETURN mResultado END nLine:= MLCOUNT(cCode,,3,.t.) iLinea := 0 For a:= 1 To nLine SysRefresh() linetxt:=Rtrim(memoline(cCode,80,a,3,.t.)) If Left(Rtrim(linetxt),6)="Sábado" ...
by CARLOS ATUNCAR
Fri Dec 18, 2020 1:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: COMO ABRIR UNA WEB CON CHROME
Replies: 2
Views: 803

Re: Reporte con Doble Renglon

... Data SubStr(aDatDetalle[nRegis,3],1,I) SIZE 35 FONT 2 _ccCadena2 := SubStr(aDatDetalle[nRegis,3],I+1) EXIT ENDIF NEXT It is much easier to use MLCount() and MemoLine() nLines := MLCount( cText, nLen ) cLine1 := MemoLine( cText, nLen, 1 ) cLine2 := MemoLine( cText, nLen, 2 )
by nageswaragunupudi
Sun Nov 01, 2020 7:53 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Reporte con Doble Renglon
Replies: 5
Views: 817

Re: Cambiar altura area Easy Report Tiempo Ejecución

Excelente Armando, muchas gracias :D

Funciono a las mil maravillas.

Desconocía la existencia de las funciones MLCOUNT() y MEMOLINE().

Pdta. No me había quedado tiempo de mirar el código. Hemos estado un poco ocupados con el tema de la facturación electrónica.
by leandro
Fri Jan 31, 2020 2:22 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cambiar altura area Easy Report Tiempo Ejecución SOLUCIONADO
Replies: 12
Views: 2239

Re: Como Puedo Imprimir Campo Memo FPT

... nsalto:=olis:nVertRes() / 65 // Renglones ncolum:=olis:nHorzRes() / 80 // Columnas xhoja:=0 xmarca:=0 PAGE T01001() texto1:=1->texto line_cnt:=mlcount(texto1,105) curr_line:=1 do while curr_line<=line_cnt if l>nsalto*60 ENDPAGE PAGE xmarca:=0 T01001() endif print_line:=memoline(texto1,105,curr_line) ...
by pedroluis
Wed Mar 06, 2019 1:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imprimir Campo Memo FPT AYUDA URGENTE Para Cesar Gomez
Replies: 14
Views: 2564

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

... MHide()->Nil MilliSec(<nMilliSeconds>)->cNull Min(<xExp1>,<xExp2>)->xSmaller Minute(<dDateTime>)->nMinute MLCount(<cString>,[<nLineLength>],[<nTabSize>],[<lWrap>],[<lLongLines>])->nLines MLCToPos(<cText>,<nWidth>,<nLine>,<nCol>,[<nTabSize>],[<lWrap>],[<lLongLines>]))->nPosition ...
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: 5690

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

... Mantissa Max MaxCol MaxLine MaxRow MCol MDblClk MDY MemoEdit MemoLine MemoRead Memory MemoTran MemoWrit MemvarBlock MHide MilliSec Min Minute MLCount MLCToPos MLeftDown MLPos Mod Month MPosToLC MPresent MRestState MRightDown MRow MSaveState MSetBounds MSetCursor MSetPos MShow NationMsg NetCancel ...
by carlos vargas
Sat Oct 21, 2017 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5690

Re: Ayuda DLL

Antonio buenas noches, ahora son estos: Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406) Copyright 1999-2009, http://www.xharbour.org http:...
by ricardog
Fri Sep 01, 2017 2:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6329

Re: Ayuda DLL

Antonio, aquí la segunda parte: Error: Unresolved external '_HB_FUN_DRAWTHEMED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_GETDLGBASEUNITS' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_CDLG2CHR' referenced from P...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6329

Re: Printing routine

... text should fit in just one line. Do you mean that ? > can I calculate how much lines there are needed to print all text You may use Harbour MLCount() to know how many lines the text has
by Antonio Linares
Fri Dec 16, 2016 6:26 pm
 
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: Printing routine
Replies: 11
Views: 3970

Re: create an arra from txt file

... did it--loading the entire file into memory then parsing it, rather than reading each line from the disk. Your coding mistake is here: nLinea :=MLCOUNT(cTexto) Should be: nLinea :=MLCOUNT(cTexto, 81) // was missing the line length I would also suggest setting cTexto to nil right after you are ...
by James Bott
Fri Jan 16, 2015 3:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create an arra from txt file
Replies: 7
Views: 2439
Next

Return to advanced search