Sign in to follow this  
Followers 0
Eagle710

Multi String RegEdit

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Eagle710,

append to same registry as above without overwriting... regwrite command

Just 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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Eagle710,

Just read the registry value that currently exists, add the new value to it and rewrite the entire string to the registry. :)

M23

Is 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?

Share this post


Link to post
Share on other sites

$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


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thanks for the help. I may have this.

Edited by Eagle710

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0