Hi Rob,
I've done this kind of thing before:
on preOpenStack
-- first gain access to settings
-- (assumes this is a standalone)
put the filename of me into tPath
set the itemDelimiter to slash
if the platform = "MacOS" then
delete item -4 to -1 of tPath
else
delete item -1 of tPath
end if
put "/mySettings.rev" after tPath
-- second, make sure a 30-day time limit exists
if the uTimeLimit of stack tPath = empty then
set the uTimeLimit of stack tPath \
to (the seconds + (60*60*24*30))
save stack tPath
end if
-- third, check for expired time
if the seconds > the uTimeLimit of stack tPath then
answer "This demo has expired."
quit
end if
-- keep going if all is OK
pass preOpenStack
end preOpenStack
HTH -
Phil Davis
Robert Mann wrote:
Are there any sample scripts showing how I should do this?
I was thinking of doing it like this
On preopenstack
IF fld "dateopened" is empty THEN
put the long system date into fld "dateopened"
else
* this is where I am having trouble want to check what is in fld
"datopened" and make sure it is not more than 30 days old if it is don't
open the stack and post a message
end if
Thanks
Rob
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution