| To: | jmp-l@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: menu for scripts |
| From: | Donald.Palahnuk@imclone.com |
| Date: | Thu, 26 May 2005 14:00:02 -0400 |
| In-reply-to: | <Pine.LNX.4.44.0505261330120.12028-100000@vidi.cma.mgh.harvard.edu> |
|
Hello Mr Steve from Harvard :-) ... This is absolutely possible. You need to create a listbox - drop down ... and then tie the selection of the list box to an _expression_ which routes the _expression_ excution based on the actual selection of the list box. Try this script: ____________________________________________________ // list of text values to populate listbox [lb1] list1 = {"code1", "code2", "code3"}; // gui - window constructor nw = new window("goober", lb1 = listbox (list1, width(150), maxSelected(1), nLines(4), go_procs ) ); // _expression_ (procedure) to act on each of three choices go_procs = expr( // get the selection ... sel = lb1 << get selected; // act on which choice was made if(sel[1] == list1[1], print("you got 1") ); if(sel[1] == list1[2], print("you got 2") ); if(sel[1] == list1[3], print("you got 3") ); ); ___________________________________________________ Alternatively employ the "include" statement in place of the "print" statements to execute a given script residing on a network or pc drive. Enjoy !! D Palahnuk Senior Engineer, Process Sciences ImClone Systems 908 252 3533 Donald.Palahnuk@ImClone.com
Does anyone know if it's possible to create a "pull down"-type menu in JMP that would allow others in my lab to easily access JSL scripts I've written? I'm using JMP 5.0.1.2 on Mac OSX 10.3.9 Thanks. Steve Hodge Confidentiality Note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named on the e-mail. If the reader of this e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system. Thank you. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | menu for scripts, Steve Hodge |
|---|---|
| Next by Date: | Need help to create a formula, James T Metz |
| Previous by Thread: | menu for scripts, Steve Hodge |
| Next by Thread: | Need help to create a formula, James T Metz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |