OK, that makes sense, but how come I can set the text of option menus, fields, etc without a problem if they don't exist yet? More to the point, why isn't there some sort of runtime error if I try to address a control that doesn't exist yet (Monte?)? That's what I mean about preOpenCard being unreliable.
Anyway, I have a workaround so all's well that ends well. Pete lcSQL Software <http://www.lcsql.com> On Wed, Mar 20, 2013 at 11:21 AM, Mark Wieder <mwie...@ahsoftware.net>wrote: > Peter Haworth <pete@...> writes: > > > I guess I'm just very suspicious of anything other than really > > straightforward commands in preOpenCard now. > > Well, here's the thing. It's *pre*OpenCard because the card and its > controls > haven't been instantiated yet. So sending a message to a control that > doesn't > officially exist shouldn't work. The script is there in memory, so you can > call > handlers in it, but it's not yet associated with an on-screen object. The > pre > handlers exist so that you can set things up before the objects take form. > > -- > Mark Wieder > mwie...@ahsoftware.net > > > _______________________________________________ > 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