Search found 29 matches: otxt

Return to advanced search

COMO ABRIR UNA WEB CON CHROME

... If Left(Rtrim(linetxt),6)="Sábado" iLinea := a+1 Exit EndIf Next ntxt:="" ltcambio := .F. otxt:=FCreate( op:temp+"tcambio.txt" ) For a:=iLinea TO nLine oWait:Say( 1,3,"Espere, Convirtiendo response..."+Space(30) ) SysRefresh() ...
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: Faster way then append from SDF

... Thank you for the suggestion, but unfortunately, it's slower. It took 64sec to read it. The 'append from' was 35sec. Hi, Did you try this ? oTxt:=TTxtFile():New("yourtxtfile.txt") wnbl:=oTxt:recCount() && number of line if wnbl>0 for wbcl = 1 to wnbl aadd(vtxt,oTxt:ReadLine()) ...
by Marc Vanzegbroeck
Fri Feb 15, 2019 5:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Faster way then append from SDF
Replies: 11
Views: 2170

Re: Faster way then append from SDF

Hi, Did you try this ? oTxt:=TTxtFile():New("yourtxtfile.txt") wnbl:=oTxt:recCount() && number of line if wnbl>0 for wbcl = 1 to wnbl aadd(vtxt,oTxt:ReadLine()) oTxt:skip() next endif oTxt:end() * Try it . Philippe ...
by Jack
Fri Feb 15, 2019 4:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Faster way then append from SDF
Replies: 11
Views: 2170

Re: INSERT SET o INSERt VALUES

Los registros los tomo de un archivo de texto plano,
es muy rápido el while ! oTxt:Eof()
actualmente lo hago como dices
pero pensé si habría otra forma de hacerlo mas rápido,
quizás un PROCEDURE que corra dentro del mismo server,

saludos.
by sysctrl2
Fri Feb 13, 2015 4:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: INSERT SET o INSERt VALUES
Replies: 19
Views: 2748

Re: Funciones no utilizadas, cuales y como saber?

... las funciones solo las tengo en FUNS.PRG si quisiera saber que funciones se utilizan en todos los demas prgs del proyecto, seria facil para mi, oTxt := TTXTFILE():new( "funs.prg" ) oTxt:GoTop() while ! oTxt:eof() *** ...... oTxt:skip() end saludos..
by sysctrl2
Fri Feb 13, 2015 12:35 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones no utilizadas, cuales y como saber?
Replies: 25
Views: 4426

Re: Memoedit

It is in a .prg that cannot be condensed. To put it very simply, here is the original code line which compiles perfectly: REDEFINE GET oTxt:ltrtxt MEMO ID 912 OF oDlg UPDATE Here is the revised code line that fails: REDEFINE RICHEDIT oRtf VAR oTxt:ltrtxt ID 912 OF oDlg UPDATE The error message, ...
by TimStone
Thu Mar 20, 2014 8:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Memoedit
Replies: 29
Views: 6393

Re: Memoedit

REDEFINE RICHEDIT oRtf VAR oTxt:ltrtxt ID 912 OF oDlg UPDATE

Fails on compile at RICHEDIT.
Yes, #INCLUDE "richedit.ch" is in the file
by TimStone
Wed Mar 19, 2014 10:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Memoedit
Replies: 29
Views: 6393

Re: Memoedit

How about with a GET for a memo: REDEFINE GET oTxt:ltrtxt MEMO MESSAGE "Edit the text, and press OK to save your changes, or Cancel to exit" ; ID 912 OF oDlg UPDATE Get with Memo/Text is only meant for editing pure text. MemoEdit() function ...
by nageswaragunupudi
Tue Mar 18, 2014 4:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Memoedit
Replies: 29
Views: 6393

Re: Memoedit

How about with a GET for a memo:

REDEFINE GET oTxt:ltrtxt MEMO MESSAGE "Edit the text, and press OK to save your changes, or Cancel to exit" ;
ID 912 OF oDlg UPDATE
by TimStone
Tue Mar 18, 2014 4:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Memoedit
Replies: 29
Views: 6393

TTXTEDIT colorear texto

Amigos,

É possível utizando TTXTEDIT colorir uma parte da linha, exemplo:

oTxt:Colorear(10,20,CLR_RED)

obrigado
by MGA
Sun Mar 17, 2013 7:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TTXTEDIT colorear texto
Replies: 0
Views: 253

Re: extraer cadenas

elvira, Podrias hacerle un recorrido con el ttxtfile. Ejemplo oTxt := ttxtfile( "miarchivo.txt" ) WHILE !oTxt:eof() if '"title":' $ oTxt:cLine cTitle := substr(oTxt:cLine, at(":", oTxt:cLine)) elseif '"pageCount":' ...
by wmormar
Fri Mar 15, 2013 11:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: extraer cadenas
Replies: 8
Views: 2016

Re: Asignar objeto a xBrowse

... mostrar el archivo de texto con la siguiente instrucción y lo muestra perfectamente @ 0, 0 xBrowse oBrw Of oDlg Columns "cLine" Object oTxt Font oFont  Se supone entonces que este control si soporta un objeto creado por la clase TTxtfile ( oTxt ). Puedo navegar perfectamente por el ...
by horacio
Thu Nov 01, 2012 8:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Asignar objeto a xBrowse
Replies: 5
Views: 801

Re: Asignar objeto a xBrowse

Horacio

XBrowse no soporta de forma nativa ese objeto, pero igual verifica que existan metodos de navegacion(gotop, gobottom, skip, etc), posiblemente lo este usando como un objeto "Browseable" porias intentar usar el metodo "SetoDbf( oTxt )", talvez funcione (no lo he probado)
by Daniel Garcia-Gil
Thu Nov 01, 2012 7:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Asignar objeto a xBrowse
Replies: 5
Views: 801

Re: Asignar objeto a xBrowse

... al browse el nuevo objeto para que lo muestre. Así como para un objeto recordset lo muestro con oBrw : SetAdo( oRs), para mostrar un objeto oTxt generado por la clase TTxtFile, cual es el método ??? Espero haberme explicado. Nuevamente gracias por tu ayuda. Saludos
by horacio
Thu Nov 01, 2012 2:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Asignar objeto a xBrowse
Replies: 5
Views: 801

Assigning object xBrowse

... him TTxtFile class. The object generated with class I show that a xBrowse follows: @ 0, 0 xBrowse oBrw Of oDlg Columns "cLine" Object oTxt Font oFont // oTxt objeto TTxtFile   So far it works perfectly, but when I change the date of reference, the object oTxt genre again, the xBrowse ...
by horacio
Wed Oct 31, 2012 11:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Assigning object xBrowse
Replies: 0
Views: 320
Next

Return to advanced search