TheSwamp

Code Red => .NET => Topic started by: sdunn on October 16, 2014, 07:45:46 PM

Title: set multiple variables from 2 dimensional array
Post by: sdunn on October 16, 2014, 07:45:46 PM
I am trying to pull settings from the registry and assign them to public variables in my sub. 

I have an array that was created using the VB GetAllSettings("Appname", "RoutineName").  The array contains the setting names as a string and each values.  Is there a way to either dim a variable or assign the value to a variable name by looping through the array?

Code: [Select]
            For intSettings = LBound(MySettings, 1) To UBound(MySettings, 1)
                setavariablecommand((intSettings, 0).tostring) = MySettings(intSettings, 1)
            Next intSettings