Skip to content

Problem with MEMOREAD() in xharbour+letodbf #33

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions