Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
ChoiceList multiple selection (Read 1980 times)
Dan Fulop
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 29
ChoiceList multiple selection
Feb 21st, 2012 at 3:59pm
 
Hi,

I'm writing a wrapper for a .bf with an associative array to pass options to the analysis.  One of the .bf's options has multiple selections, i.e. I need to select 3 branches.  However, I've tried several different ways of inputing the option into the assoc. array in the wrapper and all have failed; I started with this "literal" version: "1\n6\n\7\nd\n ...which is what I would type in on the command prompt.

Please help me input this multiple selection into the assoc. array.

Thanks!!
Dan.
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: ChoiceList multiple selection
Reply #1 - Feb 21st, 2012 at 4:18pm
 
Hi Dan,

To select two options do this, for example

Code:
...
options["05"] = "first";
options["06"] = "second";
options["07"] = "";
...

 



The trick is to list each option on the individual line and indicate that you are done by the empty string.

Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
Dan Fulop
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 29
Re: ChoiceList multiple selection
Reply #2 - Feb 21st, 2012 at 4:38pm
 
Thanks, Sergei!

One of my tries was like that, but with "d" as the last options as that's what I'd input in the command prompt.
Back to top
 
 
IP Logged