Hi..
I need to know whether it is possible to exit data entry after running function used for ftp file upload.
I call dummy data entry for upload data file to FTP server it contain code and after that code runs I need to close data entry without user interaction. I tried endlevel which save data to file and Stop(1) which not wait till file upload task.Is there any other code I can try.
Exit CAPI data entry without saving data
-
- Posts: 160
- Joined: November 21st, 2022, 4:41 pm
Re: Exit CAPI data entry without saving data
Hello,
Stop(1) is the correct way to exit CAPI Data Entry without saving data. If the problem you are having is that it is not waiting until the file upload task is completed, then you need to arrange your code so that Stop(1) is only called after the upload is completed. You can either call it after calling
Hope this helps,
Justin
Stop(1) is the correct way to exit CAPI Data Entry without saving data. If the problem you are having is that it is not waiting until the file upload task is completed, then you need to arrange your code so that Stop(1) is only called after the upload is completed. You can either call it after calling
syncdisconnect();
, or call it only if syncfile(PUT, DICT) = 1 then
syncfile() will be completed by the time you disconnect from the server or by the time its result is evaluated by the If statement, so you should be able to Stop without interrupting the sync. Please let us know if you have any additional questions.Hope this helps,
Justin