Custom Property Data storage???

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
urbaud
Posts: 118
Joined: Tue Feb 24, 2009 12:10 am
Location: Victoria, BC, Canada

Custom Property Data storage???

Post by urbaud » Fri Aug 02, 2013 10:29 pm

Questions about Custom Properties (CP). How much data (text) can be put into a CP? Is there a limit to the amount? Can a CP be used as a storage container for data (text) in the same way we use an external text file to store data? Is it routinely used to store large amounts of data or is storing large amounts of data usually left to an external file? It seems to be a good way to hide and secure data from prying eyes as there is no file for someone to view. Any comments?

urbaud
urbaud

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Custom Property Data storage???

Post by FourthWorld » Fri Aug 02, 2013 10:53 pm

For encryption see the encrypt command in the Dictionary.

But re. stack files, yep, they make good general data stores, useful for up to about 50 MBs of data (you can go further, but after 100 MBs you'll see some serious slowdowns when loading and saving).

The only logical limit on the number of custom properties is, if memory serves, UINT4 (> 4 billion). You'll probably run out of RAM long before you run out of available property slots.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

urbaud
Posts: 118
Joined: Tue Feb 24, 2009 12:10 am
Location: Victoria, BC, Canada

Re: Custom Property Data storage???

Post by urbaud » Mon Aug 05, 2013 11:06 pm

Hi Richard,
Thanks for your reply, I appreciate the information.
urbaud

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”