Storing an array into a custom var ? [SOLVED]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Storing an array into a custom var ? [SOLVED]

Post by atout66 » Sat Apr 12, 2014 9:12 am

Hi to all,

I'm wondering if it's possible to store an array into a custom property of a card ?
The array is text only, multidimentionnal.

I didn't find the answer yet elsewhere...

Kind regards, Jean-Paul.
Last edited by atout66 on Sat Apr 12, 2014 12:58 pm, edited 1 time in total.
Discovering LiveCode Community 6.5.2.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Storing an array into a custom var ?

Post by Simon » Sat Apr 12, 2014 9:54 am

Hello Jean-Paul,
arrayEncode arrayDecode can be use to save as a custom property.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Storing an array into a custom var ?

Post by Klaus » Sat Apr 12, 2014 11:39 am

Hi friends,

starting with version 6.x you don't even need to encode that thing:
...
set the cProp of this stack to tArray
...
does the job :D


Best

Klaus

atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: Storing an array into a custom var ?

Post by atout66 » Sat Apr 12, 2014 12:58 pm

Thanks a lot for your help. :wink:
Discovering LiveCode Community 6.5.2.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Storing an array into a custom var ?

Post by SparkOut » Sat Apr 12, 2014 1:15 pm

Klaus wrote:Hi friends,

starting with version 6.x you don't even need to encode that thing:
...
set the cProp of this stack to tArray
...
does the job :D


Best

Klaus
Works fine like that in 5.5.5 and 5.5.4 too (on Windows. Not tested any other versions but I'd believed I've used it like that since forever.)

Post Reply