The Mathematica Journal
Departments
Download This Issue
Home
Feature Articles
Graphics Gallery
Tricks of the Trade
In and Out
Columns
The Mathematica Programmer
New Products
New Publications
Classifieds
Calendar
News Bulletins
Editor's Pick
Mailbox
Letters
Write Us
About the Journal
Staff and Contributors
Submissions
Subscriptions
Advertising
Back Issues

Message Parameters

Q: How can I grab the value of parameters in a message? For example, in
[Graphics:../Images/index_gr_76.gif]
[Graphics:../Images/index_gr_77.gif]
[Graphics:../Images/index_gr_78.gif]
I want to return the value of the first parameter in the message (i.e., 0.4).
A: David Withoff (withoff@wolfram.com) suggests modifying Message to save its first parameter as a global variable.
[Graphics:../Images/index_gr_79.gif]
[Graphics:../Images/index_gr_80.gif]
[Graphics:../Images/index_gr_81.gif]
[Graphics:../Images/index_gr_82.gif]
[Graphics:../Images/index_gr_83.gif]
Of course, care must be taken if you plan to use an intermediate algorithmic detail (the value sent to the message) as the final result.


Converted by Mathematica      September 29, 1999

[Prev Page][Next Page]