Is it possible...

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Is it possible...

Post by BIX » Mon Mar 19, 2007 12:52 pm

I don't know how to explain this... Is it possible to put some file in a stack? Like in installers.
BIX

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Post by Klaus » Mon Mar 19, 2007 1:01 pm

Hi BIX,

YES!


Best

Klaus Major


P.S.
Just in case you'd like to know how to... ;-)

1. Use Custom Properties to store these (binary) files inside of your stack(s).

2. Use this syntax to read a file into a customproperty (a jpeg file in this case):
...
set the my_stored_file of stack "XYZ" to url("binfile:" & "path_to_your_file.jpg")
...

3. To write it back onto the HD:
...
put the my_stored_file of stack "XYZ" into url("binfile:" & "new_path_to_your_file.jpg")
...

BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Post by BIX » Mon Mar 19, 2007 1:04 pm

Thanks man. :lol:
BIX

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Post by Klaus » Mon Mar 19, 2007 2:14 pm

YO! ;-)

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”