Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strtofile does't works at run time!
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Strtofile does't works at run time!
Divers
Thread ID:
00705868
Message ID:
00705868
Vues:
45
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
Fil
Voir

Click here to load this message in the networking platform