Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtofile does't works at run time!
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Strtofile does't works at run time!
Miscellaneous
Thread ID:
00705868
Message ID:
00705868
Views:
44
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
Next
Reply
Map
View

Click here to load this message in the networking platform