Array Pop to Var

52 views
Skip to first unread message

V Oz

unread,
Feb 12, 2012, 2:30:04 AM2/12/12
to tas...@googlegroups.com
Hi, Pent.
It seems that Array Pop action doesn't work with local variables inside task. Works with Global ones.

Pent

unread,
Feb 12, 2012, 4:55:51 AM2/12/12
to Tasker
> It seems that Array Pop action doesn't work with local variables inside
> task. Works with Global ones.

Works for me...

Variable Set, %arr1, t
Array Pop, %arr, %ans
Flash %ans

Shows 't'. Or did you mean something different ?

Pent

V Oz

unread,
Feb 12, 2012, 11:49:04 AM2/12/12
to tas...@googlegroups.com
Not in the same task - in two different with global array. First task sets items, second one pops them out.

Task 1
Array Push %Points Pos 1 "Aaaa"

Task 2
Array Pop %Points Pos 1 To %local
Flash %local

Shows %local

Task 3
Array Pop %Points Pos 1 To %Global
Flash %Global

Shows "Aaaa"

Pent

unread,
Feb 13, 2012, 6:12:30 AM2/13/12
to Tasker
Ah, thanks. It's when you pop from global to local or vice versa.

Fixed next version.

Pent

V Oz

unread,
Feb 13, 2012, 8:28:39 AM2/13/12
to tas...@googlegroups.com
BTW, when it comes to us, next version? (with hopefulness in voice)

Pent

unread,
Feb 13, 2012, 8:52:56 AM2/13/12
to Tasker
Next few days I hope.

Pent

V Oz

unread,
Feb 14, 2012, 4:24:12 AM2/14/12
to tas...@googlegroups.com
BTW-2, is it limitation that File -> Read Line action accepts for Line global var only?

Pent

unread,
Feb 14, 2012, 5:09:52 AM2/14/12
to Tasker

> BTW-2, is it limitation that File -> Read Line action accepts for Line
> global var only?

There's no need for that restriction, will fix.

Pent
Reply all
Reply to author
Forward
0 new messages