hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Arrays

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions
View previous topic :: View next topic  
Author Message
VincentMagnotta



Joined: 28 Jul 2008
Posts: 46

PostPosted: Wed Feb 22, 2012 8:47 am    Post subject: Arrays Reply with quote

So, the list of files sent by the SFTP task is now an array. If I convert the array to text with ALLROWS it contains every file that's been sent ever. How do I get a list of just what was sent this last time it was run?

Is there a way to slice an array (e.g. I want 3 lines)?
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Feb 27, 2012 4:25 pm    Post subject: Reply with quote

The list contains only the files sent in the last run..

You could read one row (line) at a time using the array read task.

Other option is to use the FILE variable:
$%FILE::LINE::MID::1::3::[file_path]%$
Back to top
View user's profile Send private message
VincentMagnotta



Joined: 28 Jul 2008
Posts: 46

PostPosted: Mon Feb 27, 2012 10:10 pm    Post subject: Reply with quote

The variable file itself contains all the extra data as well. ALLROWS is, correctly, showing me everything it's ever done.

- So to embed what I want in an email, I'd have to use file FILE::LINE::MID and nest the variable that lists how many files were sent (the task's FilesXfered variable).

- Otherwise I'd have to loop over the ARRAY (but I can't easily do that since I don't know how many entries in the array are from my transfer vs previous ones, right...)

I can submit the variable file if that will help, but it really does contain every entry the task has EVER sent.
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Fri Mar 02, 2012 9:44 am    Post subject: Reply with quote

We will test the variable. If it is showing all lines ever sent then it is a bug, and we will fix it in the next patch update.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group