Skip to content

FILES IN APLICATION SIDE  #35

Description

I had these 2 issues:
IF oFTP:DOWNLOADFILE("controli.txt", cFTPFILE)
If I download a file it will be in aplication side (It won´t be in letodb.ini DATAPATH) .
I need to download and memoread it:

cLICENCAS := MEMOREAD(cAMBI+"controli.txt") // return ""
cLICENCAS := MEMOREAD("controli.txt") // return ""

and
SET PRINTER TO (ARQUIVO)
If I save a report to a file it will be in aplication side too.

cAMBI := CURDRIVE()+":\"+CURDIR()+"\"
SET DEFAULT TO .
SET PATH TO	(cAMBI)

I tryed that above but didn´t work.
I am using:

	#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 RDDLETO
	REQUEST RDDInfo

I expected to find the local files using application path in SET PATH but not.

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