View Full Version : update ctlstring

05-23-2003, 07:03 AM

This is a newbie question.
I want to update a ctlstring from a ctlpopup in the script requester. For example, when ctlpopup is equal to 2, ctlstring should to say something like "two" (or any word what I want).
I want to do it in a generic script, how can I do it?

c1 = ctlstring("name","One");
c2 = ctlpopup("pop",1,@"One","Two"@);

Thank you guys!

05-25-2003, 07:08 PM
make the variable c1 global and then user setvalue:

myString = "hello world!";

05-26-2003, 12:33 AM
Thanks so much Lernie! It works!

I have another question...(maybe I should to create another thread por this one)...
I need to convert RGB values (from a ctlcolor for example) to
HSV, modify them and convert them to RGB values again to assign the resultant color to another item (for example)...I was able to convert RGB to HSV, but, I can't convert HSV to RGB again (well, I tried it but it doesn't work)...Would you know how to do that? I'd really, really appreciate any help about this.

Thanks so much!:)