Compress a file into a custom property

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
Ini1
Posts: 2
Joined: Fri Oct 25, 2013 2:25 pm

Compress a file into a custom property

Post by Ini1 » Fri Oct 25, 2013 2:32 pm

Hi
Can anyone tell me how to compress a file and store it in a custom property
I have a custom property named cVersionInformation
I have tried the following
put compress("myfile.txt") into cVersionInformation of this stack
which doesn't work with an error message
(Chunk can;t create a variable with that name (explicitVariables?)) near cVersionInformation, char 38
Any help greatly appreciated
thanks.

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

Re: Compress a file into a custom property

Post by Klaus » Fri Oct 25, 2013 2:38 pm

Hi Ini1,

1. welcome to the forum :D

2. unlike variables you need to SET a custom property to something:
...
set the cVersionInformation of this stack to compress("myfile.txt")
...

Best

Klaus

Ini1
Posts: 2
Joined: Fri Oct 25, 2013 2:25 pm

Re: Compress a file into a custom property

Post by Ini1 » Fri Oct 25, 2013 3:03 pm

many thanks and such a speedy response
Regards
Ini

Post Reply