Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!ur-tut!dagl From: dagl@ur-tut.UUCP Newsgroups: comp.sys.mac Subject: ParamText Question Message-ID: <73@ur-tut.UUCP> Date: Sun, 13-Sep-87 16:45:37 EDT Article-I.D.: ur-tut.73 Posted: Sun Sep 13 16:45:37 1987 Date-Received: Tue, 15-Sep-87 01:19:15 EDT Reply-To: dagl@ur-tut.UUCP (Dave Glowny) Organization: Univ. of Rochester Computing Center Lines: 21 I'm writing a program (with Lightspeed C) which plots functions, and am using a dialog with an editText item to get a string representing the function from the user. A default value (the previous function string entered by the user, if any) is copied into the item with SetIText. The problem I've encountered is that when the string contains one of the ParamText keys (^0,^1,^2,^3) the ParamText strings are substitued in place. For example, if the user enters "x^2" in the f(x) box in my dialog, the next dialog invocation will show f(x) with the default value of "x", substituting the null string for ^2. (I do use ParamText1 for my alerts, but I pass null strings for the other 3 arguments) Is there any way to disable this substitution process ? I attempted ParamText("\P^0","\P^1","\P^2","\P^3"); but this only caused an infinte loop of substitution as I observed with TMON. -- ------------------------------------------------------------------------------- David Glowny | Internet: dagl@tut.cc.rochester.edu | UUCP: {decvax,cmcl2}!rochester!ur-tut!dagl -------------------------------------------------------------------------------