🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19147

Re: ParamText Question

#19147
From: Dave Glowny
Date: Wed, 16 Sep 1987 03:37
19 lines
1714 bytes
In article <8466@think.UUCP> barmar@godot.think.com (Barry Margolin) writes:
>In article <2837@husc6.UUCP> olson@endor.UUCP (Eric Olson) writes:
>>This is not a solution, but a praise of ParamText.  You can't define ParamText
>>1 to be "^1" because it does the substitution in an infinite loop.
>
>For the times when this is useful, you could always call ParamText a
>second time in your program.  On the other hand, given this "feature",
>there is no way to get it to stop when you want it to.

I've implemented a work-around which was suggested via e-mail by several
people: sustitute the null-character between '^' and [0-3]. Because it
has zero-width, it will not be displayed. In my own application, because
the string is returned from an editText item to my function parser, I must
also remove the null-character after the dialog is dismissed.
-- 
-------------------------------------------------------------------------------
David Glowny |  Internet: dagl@tut.cc.rochester.edu 
             |  UUCP: {decvax,cmcl2}!rochester!ur-tut!dagl
-------------------------------------------------------------------------------
Technical Details
Message-ID: <89@ur-tut.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!rutgers!rochester!ur-tut!dagl
References: <73@ur-tut.UUCP> <2837@husc6.UUCP> <8466@think.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!rutgers!rochester!ur-tut!dagl
From: dagl@ur-tut.UUCP (Dave Glowny)
Newsgroups: comp.sys.mac
Subject: Re: ParamText Question
Message-ID: <89@ur-tut.UUCP>
Date: Tue, 15-Sep-87 23:37:42 EDT
Article-I.D.: ur-tut.89
Posted: Tue Sep 15 23:37:42 1987
Date-Received: Fri, 18-Sep-87 05:42:23 EDT
References: <73@ur-tut.UUCP> <2837@husc6.UUCP> <8466@think.UUCP>
Reply-To: dagl@tut.cc.rochester.edu (Dave Glowny)
Organization: Univ. of Rochester Computing Center
Lines: 19