Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!csd4.csd.uwm.edu!bowden From: bowden@csd4.csd.uwm.edu (John William Bowden) Newsgroups: comp.sys.mac.hypercard Subject: Checking for a named object sans error if nonexistant Message-ID: <5611@uwm.edu> Date: 7 Aug 90 17:06:44 GMT Sender: news@uwm.edu Reply-To: bowden@csd4.csd.uwm.edu (John William Bowden) Distribution: usa Organization: University of Wisconsin-Milwaukee Lines: 29 I have a stack that creates other stacks and I need to verify whether certain stacks were so created. In order to do this I placed a hidden field in the first card and gave it a unique name, then when I need to open this stack with the creator stack for editing, it checks whether the name of card field number x is "unique name". I need to do this without generating an error if there is no card field number x in the target stack...Do you know what I mean? domenu "Open Stack..." put name of cd fld x into theName --where x is an integer --I cant have it just say "Never heard of cd fld x" --and I must take action on the cd fld's proper/improper naming --or cd fld x's nonexistence. go to this stack If anyone has a way to side-step the error message or knows of another nifty way for checking for a named object's existence in another stack, I would appreciate hearing from them via e-mail. Thanks In Advance, John W. Bowden ______________________________________________________________________ * John W. Bowden * bowden@csd4.csd.uwm.edu * * Computer Specialist * INTERNET * * UW-Milwaukee * "It's hard to work in groups * * Language Resource Center * when you are omnipotent." * * P.O. Box 413 Milwaukee, WI 53201 * -Q * * (414) 229-4447 * * ----------------------------------------------------------------------