Eagle710 Posted March 7, 2011 Share Posted March 7, 2011 If I am asking a series of questions that will edit the same Multi String Registry setting how can I append to the multi string value without overwriting what is currently there for instance: What you like number 1 to start? if yes then add to registry...regwrite command if no do not add What you like number 2 to start? if yes then append to same registry as above without overwriting... regwrite command if no do not add Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 7, 2011 Moderators Share Posted March 7, 2011 Eagle710,append to same registry as above without overwriting... regwrite commandJust read the registry value that currently exists, add the new value to it and rewrite the entire string to the registry. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Eagle710 Posted March 7, 2011 Author Share Posted March 7, 2011 Eagle710,Just read the registry value that currently exists, add the new value to it and rewrite the entire string to the registry. M23Is there an easy way to see if 1 or 2, or both 1 and 2 or neither 1 nor 2 were selected and than write the registry? Link to comment Share on other sites More sharing options...
iamtheky Posted March 7, 2011 Share Posted March 7, 2011 $msgbox1 = msgbox(4, '' , 'Do you Want Option 1?') $msgbox2 = msgbox(4, '' , 'Do you Want Option 2?') If $msgbox1 = 6 And $msgbox2 = 6 Then msgbox (0, '' , 'Both 1 and 2 were Selected') Elseif $msgbox1 = 6 And $msgbox2 = 7 Then msgbox (0, '' , 'Only Option 1 was selected') Elseif $msgbox1 = 7 And $msgbox2 = 6 Then msgbox (0, '' , 'Only Option 2 was selected') Else msgbox (0, '' , 'No options were selected') Endif ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Eagle710 Posted March 9, 2011 Author Share Posted March 9, 2011 (edited) Thanks for the help. I may have this. Edited March 9, 2011 by Eagle710 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now