Jacque stated; "The group needs to be self-contained with no additional 
scripting anywhere else in the stack."

But by putting a "preOpenCard" (or openCard) handler in the *Group's script* 
does mean that the group is still self contained. I was curious, so I tried a 
quick experiment and this does appear to work. Not too sure if it would solve 
Jacque's problem, but may be worth a try, looking at the manual I'd expect this 
just to work for user events, system events bypass controls and groups.

Thanks to HH for suggesting it, I've learnt something new, I always expected 
preOpenCard or openCard handlers just go in card or stack scripts, I never 
considered using them in a group or a control to be valid.

Paul


On 2014-08-04, at 10:37 AM, Peter Haworth <p...@lcsql.com> wrote:

> On Mon, Aug 4, 2014 at 6:11 AM, hh <h...@livecode.org> wrote:
> 
>> Do all changes in a preOpenCard handler in the group's script.
> 
> 
> I believe the original post stated that no openxxx or preopenxxx handlers
> could be used.
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to