Re: value function fails for multi-line input
Dick, "a" is a string not the variable a either of the following lines will work: put value (a) & cr & (b) put value (a) & cr & value (b) into c; put value(c) But, really, you can just say: put a & cr & b into c put c Pat [EMAIL PROTECTED] "a" is a reserved word in Transcript and using it as a variable works haphazardously, some times it does but mostly it doesn't. Not sure if this has anything to do with the reported problem, though, but worth checking. Robert ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: value function fails for multi-line input
Thanks, Pat, for the suggestions about the examples I posted. But the examples are just simple recipes to reproduce the failure. Actually I have handlers that generate much more involved expressions. I need those expressions evaluated in the context of particular objects that the handlers identify. So I tried the "value(expression,object)" syntax. But that fails when the expression includes a multi-line string. The "value(expression,object)" syntax seems to be the functional analog of the "send message to object" syntax. The message parameter of the send command supports multi-line strings; so, I think, should the expression parameter of the value function. So the work-around for this failure of the value function is generating a message instead of an expression, then sending the message and getting the result. I think the language designers intended to make the extra step unnecessary. -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: value function fails for multi-line input
Dick, "a" is a string not the variable a either of the following lines will work: put value (a) & cr & (b) put value (a) & cr & value (b) into c; put value(c) But, really, you can just say: put a & cr & b into c put c Pat [EMAIL PROTECTED] - Original Message - From: "Dick Kriesel" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Tuesday, June 14, 2005 6:35 PM Subject: value function fails for multi-line input Each of the following causes the 2.6 engine on Mac OS X 10.4.1 to report "error executing expression:" put value( "a" & cr & "b") put "a" & cr & "b" into c; put value(c) set the lineDelimiter to "|"; put value("a|b") In contrast, the following succeeds: set the lineDelimiter to "_"; put value("a_b") If you¹d like to add votes, please see BugZilla 2904. -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
value function fails for multi-line input
Each of the following causes the 2.6 engine on Mac OS X 10.4.1 to report "error executing expression:" put value( "a" & cr & "b") put "a" & cr & "b" into c; put value(c) set the lineDelimiter to "|"; put value("a|b") In contrast, the following succeeds: set the lineDelimiter to "_"; put value("a_b") If you¹d like to add votes, please see BugZilla 2904. -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution