Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!usc!sdsu!ucselx.sdsu.edu!polyslo!dorourke From: dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) Newsgroups: comp.sys.mac Subject: Re: How does a program find out the (Chooser) User Name? Message-ID: <25d7743b.425f@polyslo.CalPoly.EDU> Date: 13 Feb 90 02:43:07 GMT References: <1990Feb12.220022.19862@utzoo.uucp> Reply-To: dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) Organization: Cal Poly State University -- San Luis Obispo Lines: 21 dave@utzoo.uucp (Dave Sherman) writes: >How does an application or INIT find out what name the user >has entered as User Name in the Chooser? This doesn't appear >to be documented anywhere. Here's some code that I use to do it: procedure GetChooserName(var theString : Str255); const ChooserNameID = -16096; var TempString : StringHandle; begin TempString := GetString(ChooserNameID); theString := TempString^^; end; {GetChooserName} >Thanks. Hope this helps. -- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|///////////////////////////////////////// David M. O'Rourke____________________|_____________dorourke@polyslo.calpoly.edu | Graduating in March of 1990, with a BS in Computer Science | |_That should make several people at Poly happy.______________________________|