Hello Everyone!
In a Module I've declared an array ands a counter variable like so:
VB Code:
Public LPProgLoc(9) As String Public IndLP As Integer
The purpose of this array is to store 10 program locations on the pc. The catch is that I used 2 seperate forms. One to start the programs, and one to browse for the programs.
On my first form I'm trying to use the counter variable like:
But the problem is that it doesn't store all the programs in the array - it just loads the last inserted item.VB Code:
Dim LPEditProp As New frmLPEditProp If RadioButton1.Checked = True Then IndLP = 0 ElseIf RadioButton2.Checked = True Then IndLP = 1 End If If (LPEditProp.ShowDialog() = DialogResult.OK) Then LPProgLoc(IndLP) = LPEditProp.ofdLPBrowse.FileName End If End Sub
I want to have 2 different radiobuttons load 2 different programs, instead of 2 different radio buttons loading the same program.
How can I achieve that?![]()




Reply With Quote