<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr" data-setdir="false">Hi all,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Is there a way to delete a variable that you created in the GUI menu when you reload the script?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I'll try to explain my question with this example:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span><span style="font-size: medium;"> </span></span>nr_dielectric_groups = DefineNumber[ 4, Min 1, Max 2000, Step 1, Name " Dielectric parameters/Nr. of dielectric groups" ];<br></div><div><div><br></div><div>For i In {0:nr_dielectric_groups-1}</div><div> dielectric_thickness(i) = DefineNumber[ 550, Min 1, Max 2000, Step 1, Name Sprintf(" Dielectric parameters/ Dielectric thickness %g", i+1) ];</div><div>EndFor</div></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">when you first start the script dielectric_thickness() will be a vector of dimension four and you will see four dielectric_thickness variables in the menu.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">However if I set nr_dielectric_groups=2 the menu will still show four dielectric_thickness variables. Is there a way to delete excess variables from the menu?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Many thanks,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Marco</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div></div></body></html>