Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy a FRX file from an APP file?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to copy a FRX file from an APP file?
Divers
Thread ID:
01669580
Message ID:
01669580
Vues:
62
Hi,

My app consists of two major files: the EXE and the APP. The .APP file (e.g. MyApp.App) is where all the report files reside (all FRX files). I want to copy a FRX/FRT file from the MyApp.App to a TEMP folder. For example, if the FRX/FRT files were in the EXE, I would do the following (which works):
lcExtName = FORCEPATH( "RPT_" + TRANSFORM(_VFP.PROCESSID) + "_" + SUBSTR(SYS(2015),3,10), GETENV("temp"))
STRTOFILE(FILETOSTR(FORCEEXT(cCustomRepName, 'FRX')), m.lcExtName+".FRX")
STRTOFILE(FILETOSTR(FORCEEXT(cCustomRepName, 'FRT')), m.lcExtName+".FRT")
But when the file cCustomRepName is in the .APP, it fails.

Any suggestions?

TIA,

UPDATE. One way I see doing it is to move the code (sample above) to the MyApp.app procedure. But
if there is a way to do it from the .EXE file, it would be better.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform