HI all,
Do you know if it's possible to do a SAVEAS with setting the "eof" to 0
Or if the file still exist, just erase the content
Thanks for your help
Thais
Saveas with eof to 0
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Saveas with eof to 0
Mac Os : 10.13.3 (17D102)
Firefox : 48.0.2
iMacros for Firefox : 8.9.7
Firefox : 48.0.2
iMacros for Firefox : 8.9.7
Re: Saveas with eof to 0
"'SAVEAS' with EOF=0" won't be possible because a 'SAVEAS' always appends the "new" Data to the existing Data in the File (or it creates the File if it doesn't exist).Thais wrote:HI all,Code: Select all
Mac Os : 10.6.8 Firefox : 46.0.1 iMacros for Firefox : 8.9.6
Do you know if it's possible to do a SAVEAS with setting the "eof" to 0
Or if the file still exist, just erase the content
Thanks for your help
Thais
"Or if the file still exist(s...!), just erase the content.", yep, that's possible..., and there are several ways...:
- If you first want to check if the File already/still exists, it is possible to "misuse" '!FOLDER_DATASOURCE' for that Purpose, or you pretend to pull some '{{!COL1}}' Data from it as a DataSource and using 'EVAL()' +'length()' on the String returned by '{{!COL1}}', you can spit out some "YES"/"NO" or "1"/"0" Flag or even a String with the Filename / a fake Filename to reuse in the next Step.
- Then using 'FILEDELETE', you delete the File (using '!ERRORIGNORE' maybe in case the File didn't exist at all), or you can even do a Conditional 'FILEDELETE' if you reuse the String computed as the Filename/fake Filename in the previous Step.
- And you recreate the File with 'SAVEAS' and '!EXTRACT' being 'NULL' or containing an empty String.
And maybe simply just using 'FILEDELETE' will be enough for your Needs...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Re: Saveas with eof to 0
Thanks a lot, it is working fine
Thais
Thais
Mac Os : 10.13.3 (17D102)
Firefox : 48.0.2
iMacros for Firefox : 8.9.7
Firefox : 48.0.2
iMacros for Firefox : 8.9.7
Re: Saveas with eof to 0
Yeah..., good to hear, but you could be a bit more explicit...!Thais wrote:Thanks a lot, it is working fine
Thais
I gave you several ways, which one did you choose...?, and you could share your Script to make this Thread a bit useful for other Users as well...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...