Search found 12 matches: freadline

Return to advanced search

creation of a pdf

I save a text on a 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 := LTr...
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: funciones de FWH y Harbour en un archivo .txt

__clsVerify(<nClassH>)-><acBrokenMessages>|Nil __objAddData(<oObject>,<cDataName>)->oObject __objAddInline(<oObject>,<cInlineName>,<bInline>)->oObject __objAddMethod(<oObject>,<cMethodName>,<nFuncPtr>)->oObject __objDelInline(&l...
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: 5710

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

__clsVerify __objAddData __objAddInline __objAddMethod __objDelInline __objDelMethod __objDelMethod __objDerivedFrom __objGetMethodList __objGetValueList __objModInline __objModMethod __objSetValueList __Pack __Run __Zap AAdd Abs AChoice AClone ACopy ACos AddASCII AddMonth ADel ADir ADSBlob2File ADS...
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: 5710

Re: Converting CVS files

James, André: Thank you for your help and tips. I changed the program, particulary in the HB_FReadLine() function to look up for LF only and the split process went through without problems. Right now the program is appending records. As of now, DBF file size is over 10GB and still going. I'll post w...
by HunterEC
Fri Sep 06, 2013 12:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Converting CVS files
Replies: 46
Views: 20037

Re: Open a VPN connection

The function below works with open VPN client. If you use another way to connect to your VPN you might adapt it to fit your needs. The only thing you have to know is the IP address of the VPN. In my case DHCP server returns an IP from the 172.20.20.0/24 net. So I set the cWlan param to "172.20....
by ADutheil
Sun Nov 14, 2010 2:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Open a VPN connection
Replies: 1
Views: 573

Re: To obtain ip address

Is the function below OK for you? FUNCTION ChkIp( cMac ) LOCAL nMacs := fCreate( "macs.bat" ) LOCAL cBuff := "" LOCAL lRetu := .F. fWrite( nMacs, "arp -a >macs.lst" ) fClose( nMacs ) ShellExecute( 0, "open", "macs.bat",,, ) IF ( nMacs := fOpen( &q...
by ADutheil
Thu Nov 04, 2010 9:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To obtain ip address
Replies: 5
Views: 1001

Re: Funciones de Ficheros

... nume_line = flinecount(nhandel) msginfo(nume_line,"Nº de lineas") for i = 1 to nume_line freadline(nHandel,@leido) msginfo(leido) next i return function freadline( nHandle, nLineLen ) local cBuffer, nBytes, nAt DEFAULT ...
by jose_murugosa
Thu May 08, 2008 3:01 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones de Ficheros
Replies: 3
Views: 913

Funciones de Ficheros

... nume_line = flinecount(nhandel) msginfo(nume_line,"Nº de lineas") for i = 1 to nume_line freadline(nHandel,@leido) msginfo(leido) next i return function freadline( nHandle, nLineLen ) local cBuffer, nBytes, nAt DEFAULT ...
by Mike Serra
Wed May 07, 2008 5:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones de Ficheros
Replies: 3
Views: 913

Antonio Linares wrote:Frank,

MemoRead() is fine but MemoLine() should not be used as it is very slow.

Please review fwh\samples\RE.prg to see how to read lines from text, real fast :-)


xHarbour offers HB_FReadLine() that should be fast enough.

EMG
by Enrico Maria Giordano
Sat Jan 12, 2008 12:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: What is the best way read a txt file?
Replies: 7
Views: 1710

Y como seria esta funcion: Name: freadline() - read in one line from a file Usage: <string> = freadline(<handle>,[<linelen>]) Params: integer <handle> from a previous fopen() or fcreate() integer <linelen> - ...
by JmGarcia
Wed Dec 19, 2007 12:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones de 32 bits omonimas de 16 bits (Funcky-2)
Replies: 14
Views: 5263

Antonio, Unfortunately all the samples above retreive the Local ip code not the internet one I have a function that retreives a html page and reads it, the problem it is not a 100% secure function as the page might change.... This is why i was looking for a replacement, here is the function anyway, ...
by Richard Chidiak
Wed Nov 14, 2007 8:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: internet ip address
Replies: 33
Views: 6660

James, Added to FWH, thanks ops, it shows the LAN IP, not the Internet IP... Right, I hope to have a function for retreiving the Internet IP very soon. I have the information available at the moment in a txt file. I need to parse this txt file quickly to search for a string (It is a xml file basica...
by Richard Chidiak
Wed Feb 01, 2006 10:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ip address
Replies: 4
Views: 1395

Return to advanced search