Hi all,
I'm writing a code which get value from configuration settings file (*.ini)
Here are the sample of item that I have in the *.ini:
[MERCHANT]
SPLITTER=,
MERCH1=1,P,PAYMENT
MERCH2=0,R,ROADTAX
MERCH3=1,S,SUMMON
I will retrieve this value using this code:
m_IniMainObj.CurrentSection = INI_SCREENCFG_SECT_MERCHANT
m_strSplitter=m_IniMainObj.GetStrVal(INI_SPLITTER_KEY,"-")
m_strMerch1 = m_IniMainObj.GetStrVal(INI_MERCHANT_1_KEY, String.Empty)
m_strMerch2 = m_IniMainObj.GetStrVal(INI_MERCHANT_2_KEY, String.Empty)
m_strMerch3 = m_IniMainObj.GetStrVal(INI_MERCHANT_3_KEY, String.Empty)
The value is current set into m_strXXXXX as string. But I want to read the string an want to separated the value with this:
(1,P,PAYMENT)
(Boolean,String,String)
so I can hold the value whether it is True or False for 1st comma, ID for 2nd comma and description for 3rd comma and I want to save it in a declaration
Dim bVisible as Boolean
Dim strID as String
Dim strDesc as String
Can someone please help me? I'm sorry if my question is quite messy but if you have some clearance, I will explain..