inical.ini
- Code: Select all Expand view
- [Cambi]
1=Eur|Lit|1936.27|1Eur = 1936.27
2=Eur|Us$|0.9872|1Eur = 0.9872
3=Eur|Chf|1.452|1Eur = 1.452
4=Eur|Gbp|0.634|1Eur = 0.634
5=Eur|Jpy|117.452|1Eur = 117.452
and I must make a array type
aCambi:= {{'Eur', 'Lit', '1936.27'," 1Eur = 1936.27"}, ;
{'Eur', 'Us$', '0.9872', " 1Eur = 0.9872" }, ;
{'Eur', 'Chf', '1.452' , " 1Eur = 1.452" }, ;
{'Eur', 'Gbp', '0.634' , " 1Eur = 0.634" }, ;
{'Eur', 'Jpy', '117.452'," 1Eur = 117.452"}}
on this sample I have 5 lines but it can have many lines
adatatext:= array(5)
INI oIni FILE "inical.ini"
for n= 1 to 5
GET adatatext[n] SECTION "Cambi" ENTRY str(n) OF oIni
ENDINI
and then
for n=1 to 4
aadd(aData, HB_ATokens( aDataText[n] , "|" ) )
next
why it is wrong ?
only I not Know the right number of lines ... how I can make to load all lines ?
exist a function to calc how much lines I found on csection "Cambi" and I can make at init
adatatext:= array( number_of_lines)