Search found 14 matches: nread

Return to advanced search

Re: Cambios en la clase TFTPFile?

... "+time()) oTxt:Close() if oFile:hFile > 0 h := fOpen(cFile) nSize := fSeek(h,0,2) fSeek(h,0,0) cBuff := Space(nSize) nRead := fRead(h,@cBuff,nSize) fClose(h)
by omarelunico
Thu Sep 15, 2011 8:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cambios en la clase TFTPFile?
Replies: 4
Views: 848

Re: No puedo acceder a mi FTP

... ACTION DOWNLOAD( oPrg ) ACTIVATE DIALOG oDlg; CENTER RETURN NIL STATIC FUNCTION DOWNLOAD( oPrg ) LOCAL hInternet, hConnect, hSource, hDest, nRead LOCAL cData := SPACE( 1024 ) LOCAL nPos := 0 hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) hConnect = ...
by mgsoft
Wed Aug 03, 2011 1:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: No puedo acceder a mi FTP
Replies: 4
Views: 982

Re: TDOSPRN y XP WINDOWS - SOLUCIONADO

... NIL //----------------------------------------------------------------------------// METHOD PrintFile(cFile) CLASS TDosPrn LOCAL hFile LOCAL nRead LOCAL cBuffer hFile := FOpen(cFile, FO_READ) IF hFile < 0 RETURN .F. ENDIF cBuffer := Space(PF_BUFLEN) DO nRead := fRead(hFile, @cBuffer, PF_BUFLEN) ...
by Armando Picon
Mon Jan 24, 2011 8:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TDOSPRN y XP WINDOWS
Replies: 21
Views: 4697

Re: TdosPrn para USB

... NIL //----------------------------------------------------------------------------// METHOD PrintFile(cFile) CLASS TDosPrn LOCAL hFile LOCAL nRead LOCAL cBuffer hFile := FOpen(cFile, FO_READ) IF hFile < 0 RETURN .F. ENDIF cBuffer := Space(PF_BUFLEN) DO nRead := fRead(hFile, @cBuffer, PF_BUFLEN) ...
by praul
Sun Dec 19, 2010 3:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TdosPrn para USB
Replies: 5
Views: 1258

Fulltextsearch (to Marco Boschi)

... nHandle := FOPEN( "memo2.fpt" ) nSize := FSeek( nHandle, 0, FS_END ) FSeek( nHandle, -nSize, FS_RELATIVE ) cAllMemos := SPACE( nSize ) nRead := FRead( nHandle, @cAllMemos, nSize ) FCLOSE( nHandle ) ? cAllMemos RETURN NIL cAllMemos contains in a single fRead all fpt file. For instance ...
by Otto
Sun Nov 07, 2010 9:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fulltextsearch (to Marco Boschi)
Replies: 36
Views: 9335

To obtain record number from reading of fpt file

... nHandle := FOPEN( "memo2.fpt" ) nSize := FSeek( nHandle, 0, FS_END ) FSeek( nHandle, -nSize, FS_RELATIVE ) cAllMemos := SPACE( nSize ) nRead := FRead( nHandle, @cAllMemos, nSize ) FCLOSE( nHandle ) ? cAllMemos RETURN NIL variable cAllMemos contains in a single fRead all fpt file. for ...
by MarcoBoschi
Mon Aug 09, 2010 9:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To obtain record number from reading of fpt file
Replies: 0
Views: 378

Re: create and use an index for a set of records

... cString1 , cString2, cString3, cString4 ) LOCAL iW1, iW2 LOCAL cStringa LOCAL cIndRec := cFile + "_rec" LOCAL nHandle LOCAL nSize LOCAL nRead LOCAL nPosRec LOCAL nHead, nRecSize LOCAL nPosStart := 0 LOCAL nPosRecord := 0 LOCAL aPosRec1 := {} LOCAL aPosRec2 := {} LOCAL aString := {} LOCAL ...
by MarcoBoschi
Tue Aug 03, 2010 10:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: create and use an index for a set of records
Replies: 10
Views: 2133

Jeff,

Please change this line to see the bytes that are successfully written:

MsgInfo( FWRITE( hDest, cData, nRead ) )
by Antonio Linares
Sat Oct 25, 2008 9:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quoestion for Antonio
Replies: 14
Views: 3856

Problemas con FOpen y FSeek

... nPosFin:=0 nLenRec:=55 // largo datos sin CR fseek(nFileMan,0,0) while (nPos1:=fseek(nFileMan,0,1)) < nTBytes cRec:=spac(nLenRec)) nRead:=FREAD( nFileMan, @cRec, nLenRec+2 ) nPos2:=fseek(nFileMan,0,1) //DE AQUI NO PUEDO PASAR, PUES SIEMPRE LEE 0 BYTES, //COMPROBADO CON EMPTY(cRec), ...
by Arturo Lopesoria
Wed Aug 15, 2007 7:12 pm
 
Forum: FiveWin para Pocket PC
Topic: Problemas con FOpen y FSeek
Replies: 1
Views: 805

Problemas con FOpen y FRead

... nPosFin:=0 nLenRec:=55 // largo datos sin CR fseek(nFileMan,0,0) while (nPos1:=fseek(nFileMan,0,1)) < nTBytes cRec:=spac(nLenRec)) nRead:=FREAD( nFileMan, @cRec, nLenRec+2 ) nPos2:=fseek(nFileMan,0,1) //DE AQUI NO PUEDO PASAR, PUES SIEMPRE LEE 0 BYTES, //COMPROBADO CON EMPTY(cRec), ...
by Arturo Lopesoria
Wed Aug 15, 2007 6:32 pm
 
Forum: FiveWin para Pocket PC
Topic: Problemas con FOpen y FRead
Replies: 1
Views: 788

FTP

... STATIC FUNCTION SendFile(cFTPDir,cFile,oFtp,hMon,oInt) //--------------------------------------------------------// LOCAL oFile, h, cBuff, nSize, nRead, nWrite LOCAL lRet := .F. oFile := TFtpFile():New(cFTPDir+cFile,oFtp) oFile:OpenWrite() if oFile:hFile > 0 h := fOpen(cFile) nSize := fSeek(h,0,2) ...
by omarelunico
Tue Jul 10, 2007 10:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ftp con fivewin
Replies: 10
Views: 4328

... AS WORD MEMBER nChanType AS WORD MEMBER nPcdBase AS WORD MEMBER nEpsDpi AS WORD MEMBER nEpsWidth AS LONG MEMBER nEpsHeight AS LONG MEMBER nRead AS DWORD MEMBER nTell AS DWORD MEMBER nSeek AS DWORD MEMBER nAlloc AS DWORD MEMBER nFree AS DWORD MEMBER nAllocParm AS DWORD ENDSTRUCT RETURN ...
by Marco Turco
Wed Jun 21, 2006 2:52 pm
 
Forum: All products support
Topic: SALVATAGGIO DI EMF CON FREEIMAGE
Replies: 14
Views: 6206

necesito ayuda con codigos de barras y con archivos jpg

... la guardo en un campo memo de la siguiente forma: Artic->NomFoto:=aVars[15,2] nHandle:=FOpen(".\Fotos\"+aVars[15,2]) tFile:="" Do While .T. nRead:=FRead(nHandle,@cBuff,255) tFile+=Left(cBuff,nRead) If nRead != 255 Exit EndIf EndDo FClose(nHandle) // Guarda foto en campo memo If Rec_Lock(.5) ...
by Gerardo Farfan
Fri Oct 28, 2005 4:20 pm
 
Forum: FiveWin para CA-Clipper
Topic: necesito ayuda con codigos de barras y con archivos jpg
Replies: 1
Views: 1360

Problem with application terminating

... FUNC Ureadln( hHandle, cReturn, nLen, lEof, cSkip, cSkipchr ) local cChar := "" , ; lRestline := .F. , ; nRead := 1 IF PCOUNT()<6 cSkipchr = CHR(255) ENDIF IF PCOUNT()<5 cSkip = .F. ENDIF IF PCOUNT()<3 nLen = 1 ENDIF // Init... IF nRead > 1 ...
by cdmmaui
Fri Oct 28, 2005 10:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with application terminating
Replies: 1
Views: 1925

Return to advanced search