Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!shelby!csli!wilson From: wilson@csli.STANFORD.EDU (Nathan Wilson) Newsgroups: comp.sys.mac.programmer Subject: How to use ParamText's Message-ID: <8079@csli.STANFORD.EDU> Date: 13 Mar 89 23:17:58 GMT Sender: wilson@csli.Stanford.EDU (Nathan Wilson) Reply-To: wilson@csli.stanford.edu (Nathan Wilson) Organization: Center for the Study of Language and Information, Stanford U. Lines: 28 I was working on being a good person and switching all the strings in my code to calls to GetIndString when I came across the following problem. Under some conditions I would like to title a window (not a dialog or alert) that displays a PICT resource something like ID = in with the stuff in <> replaced with the appropriate info. Now it occurred to me that the best way to generate this string would be to store it as a parameterized string as per alerts, that is ^0 ID = ^1 in ^2 and then use the ParamText mechanism. However I can't find any way to invoke the string substitution stuff used by the Dialog Manager. I could of course do it all myself, but to do that correctly* I would probably have to add more globals to my program and then write and debug the code. This seems kind of a waste of effort given that the ability is at least marginally there already. Did I miss something? Any ideas, experience or code? (prefer Pascal or C) (* Read: I'd rather not mess directly with the DAStrings global mentioned on IM I-421.) Nathan Wilson Teleos Research nathan%teleos.com@ai.sri.com