Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sunybcs!dsinc!netnews.upenn.edu!grad1.cis.upenn.edu!gilbert From: gilbert@grad1.cis.upenn.edu (Michael Gilbert) Newsgroups: comp.sys.mac.programmer Subject: THINK C Help... Message-ID: <24661@netnews.upenn.edu> Date: 9 May 90 09:31:16 GMT Sender: news@netnews.upenn.edu Reply-To: gilbert@grad1.cis.upenn.edu.UUCP (Michael Gilbert) Distribution: na Organization: University of Pennsylvania Lines: 40 I know this is a stupid question, but... I have a global variable, declared as such: StringPtr gTheString; In a subroutine, I want to read in a string from an STR# file, using an index like this: GetIndString (gTheString, STR_RES_ID, stringIndex); Next, I want to put this string into an alert, in place of a ^0 in a static text field, so: ParamText(gTheString, NIL_STRING, NIL_STRING, NIL_STRING); NoteAlert(THE_ALERT_ID, NIL_POINTER); However, when I do this, the alert has the string which I used in my LAST call to ParamText, and this call to it was completely ignored? If any kind soul would please help me, or give me general help with string manipulation using THINK C 4.0 (source code?), I would be most appreciative! Thanks, mike gilbert =============================================================================== | CONSIDER IT DISCLAIMED | #include | |-----------------------------------------------------------------------------| | _ _ _ | Better the pride that resides, | | ' ) ) ) / | In a citizen of the world, | | / / / o /_ _ | Than the pride that divides, | | / ' (_<_/ <_