doing trial periods

Björnke von Gierke bvg at mac.com
Sun Apr 25 19:13:14 EDT 2004


On Sonntag, Apr 25, 2004, at 21:00 Europe/Zurich, hershrev wrote:

>
> On Friday, April 23, 2004, at 05:41 PM, Björnke von Gierke wrote:
>
>
>>  thus you need to change it in a binary write afterwards, or during 
>> the building process.
>
> Could explain a bit more in detail please ?
> thanks , hershrev


example for binary read:
You have a stack which contains your expiration date variable. lets say 
its stored in a custom property. Now you put some date into it, lets 
say "13.08.2004" (using German notation here). Then you can do this:

on mouseUp
   put offset("13.08.2004", URL "binfile:/path/to/stack.rev") into 
theFirstChar
   put "14.08.2004" into char theFirstChar to (theFirstChar + 9) \
   in URL "binfile:/path/to/stack.rev"
end mouseUp

Now you can replace the date even in a standalone with ease, you only 
need to upload the new version every day once. You could even do this 
automatically on the server itself.


The not so "digging deep" way would be to build the app each day with 
another date. Then you can upload it to your server for people to 
download it.


More information about the use-livecode mailing list