Ok I think I understand what your asking about.
You have already got the information from your ini file, but want to store this info to do what you will with later?
Public Class Merchant
Public bVisible As Boolean Public strID As String Public strDesc As String
Public Sub New(ByVal p_visible As Boolean, ByVal p_id As String, ByVal p_desc As String)
bVisible = p_visible
strID = p_id
strDesc = p_desc
That is a simple class to hold the details of a single merchant.
You could use a dictionary of merchants as below.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim merchants As Dictionary(Of String, Merchant)
merchants = New Dictionary(Of String, Merchant)()
merchants.Add("MERCH1", New Merchant(True, "P", "PAYMENT")) merchants.Add("MERCH2", New Merchant(False, "R", "ROADTAX")) merchants.Add("MERCH3", New Merchant(True, "S", "SUMMON"))
Dim merch3 As Merchant = merchants("MERCH3")
You can see that way you just need to tell the Dictionary of Merchants which Merchant you want to deal with.
Hope this helps!