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...
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...
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....
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...
... 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 ...
... 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 ...
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> - ...
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, ...
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...