Hi Peter

>You sure push the Run Command to the limit... ;-)

I guess it's a route to lazy programming... but I like it (when it works, 
of course)

>Why don't do this using a procedure insted ?

Yes, you're right. The procedure you suggest would work for me.

>will also do the job, but of course it all comes down to what exactly you
>are trying to
>achive ?

Well, I've got a dialog with two pop-up menus. The selection in the first 
pop-up determines what array is loaded into the second one. For each array 
that could be used to create the second pop-up exits a mirror array, 
containing values relevant to each choice (it's a list of names in the 
pop-up, and in the mirror, file paths).

I was looking for a way to pass the two bits of info and construct the name 
and element of the array that's needed - ie, I have an array called colour, 
and 10 called shade. if I choose Blue, the second choice from the colour 
array loaded into the first popup, it loads Cyan, Navy and Sky into the 
second popup. If I choose Cyan, I want to pass the fact that I chose Blue 
and then Cyan (2 and 1, in this case). From my mirror array, I want the 
filepath to Cyan.

With your sub, I can pass the choice of 2 in the first pop-up - so I know 
that my second value comes from array2, and then the filepath array to look 
at is path2. The value to pick from path2 is 1, same as the value chosen in 
the second pop-up.

I think that's the best explanation I can muster, and it's pretty bad! I'll 
try the sub approach and let you know - it's obviously a better method, but 
I've been tying myself into knots and didn't think of it...

cheers

Frank



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2848

Reply via email to