Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Strtofile does't works at run time!
the follow code works at design time; but does't works at run time! anyone has a idea?
> FOR QWER = 1 TO TEM
> AQUI = LEFT(ARQUIVOSTXT[QWER,1],LEN(ARQUIVOSTXT[QWER,1])-4)
> NOMEDAVAR = "VELHO_" + AQUI
> IF &NOMEDAVAR <> &AQUI
> ARQUIVO = AQUI + ".TXT"
> =deletemp(arquivo)
> =STRTOFILE(&AQUI,ARQUIVO)
> THISFORM.LOGLOG([Edição de listas TXT - alterado arq.: ] + arquivo)
> ENDIF
> NEXT
what doesn't work is the line =deletemp(arquivo), function to delete the file (is a txt file) and strtofile(&aqui,arquivo); the contents of the file is always the same (don't change); but if i turn off the computer and return the content is changed!
and after a run the code, if i edit the file with ms dos prompt, the change is ther! but not reflect in windows enviroment!
what happens?
sergio
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement