View Full Version : string array of option variables
jackyu00 10-24-2006, 09:55 PM Hi ,
I want to create some menuItem like "recent files", so I need a string array for like size 10 to save my file opened history. Does optionVar works for string array? I guess it just support int or string....
|
|
Robert Bateman
10-25-2006, 02:43 AM
Does optionVar works for string array?
yes, via the -stringValueAppend flag
// create the option
optionVar -sv "hello" "moo";
// append a couple of strings to it
optionVar -sva "hello" "moo2";
optionVar -sva "hello" "moo3";
string $vars[];
// query as string array
$vars = `optionVar -q "hello"`;
print $vars;
// kill the optionVar
optionVar -remove "hello";
jackyu00
10-25-2006, 02:59 PM
Thanks for your detail reply, That's I want !
CGTalk Moderation
10-25-2006, 02:59 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.