25 Ago 2014 10:47
25 Ago 2014 10:59
janio escreveu:Acho q ele quis dizer que so consegue conexão com o exe gerado por vc. Se ele pegar o mesmo fonte seu e compilar (gerando outro exe), não conecta ao seu servidor.
janio escreveu:Talvez isso tenha a ver com a versão do leto q ele tem (libs) que devem ser diferentes das do exe q esta rodando no seu servidor!
25 Ago 2014 11:28
25 Ago 2014 12:00
03 Set 2014 13:49
14 Nov 2017 12:56
14 Nov 2017 22:28
...instalar o LetoDB Server na minha conta no No-IP para usar a a opção conexão remota?
15 Nov 2017 09:35
16 Nov 2017 09:22
16 Nov 2017 10:36
16 Nov 2017 16:52
16 Nov 2017 20:02
Leto_FCopyToSrv( cLocalFileName, sServerFileName[, nStepSize ] )
==> lSuccess
Leto_FCopyFromSrv( cLocalFileName, sServerFileName[, nStepSize ] )
==> lSuccess
Copy a file from/ to client to/ from server, where:
<cLocalFileName> is filename at client side,
<sServerFileName> is filename at server which can contain connection info "//IP:port/".
Optional <nStepSize> determine the size of bytes to be copied with one step, default if
not given is 1 MB.
<sServerFileName> can only contain prefix: "mem:" for files in RAM,
<cLocalFileName> can contain any redirector prefix known by Harbour.
A simple backup:
aArr := Leto_Directory( "*" )
AEval( aArr, { |aItem| Leto_FCopyFromSrv( aItem[1], aItem[1] } )
Copy from a logged into HbNetIO server a file to LeoDBf located in RAM:
Leto_FCopyToSrv( "net:hbnetio.txt", "mem:RAMfile.txt" )
Leto_FOpen( cFile [, nMode ] ) ==> nHandle
Leto_FCreate( cFile [, nMode ] ) ==> nHandle
Leto_FSeek( nHandle, nBytes [, nOffset ] ) ==> nPos
Leto_FRead( nHandle, @cBuffer, nLen ) ==> nRead
Leto_FWrite( nHandle, cBuffer [, nLen ] ) ==> nWritten
Leto_FClose( nHandle ) ==> lSuccess
Leto_FEof( nHandle ) ==> lEndOfFile
Leto_FReadStr( nHandle, nLen ) ==> cBytes
Stops reading at CHR( 0 )
Leto_FReadLen( nHandle, nLen ) ==> cBytes
Binary version of Leto_FReadStr() including any! char to read
Above functions do the same and with same params as the Harbour pendants without 'Leto_'
prefix, aka Leto_FOpen() == FOpen(), but they act on files at server. File names <cFile>
respect the server datapath, are relative to it.
It is ensured, that all opened/ created files are closed with connection end,
and Leto_FClose() will close only files opened/ created with Leto_FOpen/ Leto_FCreate.
18 Nov 2017 08:02
Baixei e compilei o Letodb.exe (letodbsvc) e a Lib librddleto.a e substitui no meu sistema.Itamar M. Lins Jr. escreveu:Com o LetoDbf, vc vai aumentar ainda mais os recursos.
Vc vai poder copiar arquivos, atualizar etc... via funções do LetoDbf que não tem no LetoDb ou estão com problemas.
If !File( "TabCEST.Cdx" )
USE ( cDrvExe + "TabCEST.Dbf" ) SHARED
Index On ( ncm ) To ( cDrvExe + "TabCEST.Cdx" )
Close All
EndIf
If !File( "TabIBPT.Cdx" )
USE ( cDrvExe + "TabIBPT.Dbf" ) SHARED
Index On ( codigo ) To ( cDrvExe + "TabIBPT.Cdx" )
Close All
EndIf
If !File( "TabNCM.Cdx" )
USE ( cDrvExe + "TabNCM.Dbf" ) SHARED
Index On ( ncm ) To ( cDrvExe + "TabNCM.Cdx" )
Close All
EndIf
18 Nov 2017 08:28
18 Nov 2017 15:14