Before function MAIN() I put this:
#IFDEF __LETODBF
// servidor LETODBF
#include "rddleto.ch" // defines do RDD
#include "dbinfo.ch" // Header file for the RDD API Index OrderInfo and DBInfo support
#include "leto_std.ch" // traduz os comandos para o LETO
#define __LETO_TRANSLATE_FILE_ALL
#include "letofile.ch" // traduz todas as funções para o LETO
REQUEST LETO
REQUEST RDDLETO
REQUEST RDDInfo
#ENDIF
I defined __LETO_TRANSLATE_FILE_ALL before the header letofile.ch, is that ok?
So there was this code:
IF oFTP:DOWNLOADFILE("controli.txt", cFTPFILE)
cLICENCAS := MEMOREAD("controli.txt") // RETURNS ""
cLICENCAS returns an empty string intead text content of the file.
So I did this for a test:
IF oFTP:DOWNLOADFILE("controli.txt", cFTPFILE)
cLICENCAS := MEMOREAD("controli.txt") // RETURNS ""
#IFDEF __LETODBF
// COPY LOCAL FILE TO SERVER
Leto_FCopyToSrv( "controli.txt", "controli.txt")
cLICENCAS := LETO_MEMOREAD("controli.txt") // RETURNS ""
#ENDIF
In both cases it also returns an empty string yet.
Isn´t it a LETODBf issue?
Before function MAIN() I put this:
I defined __LETO_TRANSLATE_FILE_ALL before the header letofile.ch, is that ok?
So there was this code:
cLICENCAS returns an empty string intead text content of the file.
So I did this for a test:
In both cases it also returns an empty string yet.
Isn´t it a LETODBf issue?