title=:'hey hey'
  text=: 'this is the message'
  wd 'mb "',title,'""',text,'"'


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hahn, Harvey
Sent: Monday, February 18, 2008 16:26
To: [email protected]
Subject: [Jprogramming] Beginner Q--using variables in wd commands

I don't have time to wait until I get home (aka packrat) to ask this
question, and so I'm posting this message from work:

The "wd commands" subchapter and the "Common Dialog Boxes" chapter in the
"Window Driver" section of the "User Manual" together provide some guidance
in creating dialog boxes:  wd 'mb title text'.  Lacking specific examples,
it took me some time experimenting to realize that the following was one way
of how this might look in actual practice: 
   (1) wd 'mb "This is the title" "This is the displayed text"'

Or, if the mb command and its parameters are assigned to, say, str:
   (2) str =: 'mb "This is the title" "This is the displayed text"'
       wd str

However, I can't seem to figure out (i.e., make it work!) how to incorporate
variable names instead of literal strings into either of the above two
examples.  Is this possible, and, if so, how?  Thanks!

Harvey
 
--
===========================================
Harvey E. Hahn, Manager, Technical Services Department
Arlington Heights (Illinois) Memorial Library
847/506-2644 - FX: 847/506-2650 - Email: hhahn(at)ahml(dot)info
OML & Scripts web pages: http://www.ahml.info/oml/
Personal web pages: http://users.anet.com/~packrat

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to