dcl - popup list to remember l
I have made a popup list using dcl and autolisp and this popup list is geting its values from a list. The popup list is assigned to a variable to use elsewhere. Every time I run the routine the window shows the popup list with a default value. That makes sense since in the dcl file there is a statementlabel = "&xxx";
: popup_list {
key = "pipemat";
value = "0" ;
}
However I want to make it so that each time I run the routine, the popup list displays the value selected from the list last time it run, not the default defined as above in the dcl file.
I seems dcl is not working like autolisp. I tried the following but it is not working
value = (itoa (1+ (vl-position somevar somelist))))
Is there a way to do it? If so, how could that be done?
Thank you Read about the function set_tile and remove the the function value with its related codes . Worked like a charm! Indeed I should have read more about the set_tile before posting. Thanks You're welcome .
Furthermore , you need to make the variable that holds the get_tile function's value global to be able to reset the popup_list attribute according to last selection one . Thanks. I did that. My variables are global.
Good stuff
页:
[1]