- Messages
- 371
- Country

Hi,
I use the fantastic XMLVARS.dll from Tom Aguilo.
I have understand how works simple Vars.
But I don't undestand the chapter to create Vars array
All the sample use macro, and I have some difficulties to understand the synthax of the macros.
When I use simple XMLVars, all works fine, I have understood the function
Works perfectly.
But I want create XMLVars array with one dimension, to read a index file of SID , with the loggerx module of Rob McElrath.
Sample of my file that is in CSV format :
the first number is the number of records.
I want to read and store in 3 XMLVars array these datas.
I write this code :
But it doesn't work.
The first value is read (78) because store in a L:Vars,
But I think that my synthax for the XmlVars array is not correct.
Can you tell me how to have a XMLvars array ?
I use the fantastic XMLVARS.dll from Tom Aguilo.
I have understand how works simple Vars.
But I don't undestand the chapter to create Vars array
All the sample use macro, and I have some difficulties to understand the synthax of the macros.
When I use simple XMLVars, all works fine, I have understood the function
Code:
'VarRegionArrival' (>C:XMLVARS:SearchVarName,string)
0 (>C:fs9gps:NearestVORCurrentLine)
(C:fs9gps:NearestVORCurrentICAO,string) 1 2 ssub (>C:XMLVARS:StringValue,string)
Works perfectly.
But I want create XMLVars array with one dimension, to read a index file of SID , with the loggerx module of Rob McElrath.
Sample of my file that is in CSV format :
Code:
78
02,EAST,DIKOL
02,EAST,RANUX
02,EAST,BUBLI
02,SOUTH,DORDI
02,SOUTH,PILUL
02,SOUTH,OKASI
02,SOUTH,LATRA
02,SOUTH,ERIXU
02,SOUTH,AGOPA
02,WEST,LGL
02,WEST,EVX
02,NORTH,OPALE
02,NORTH,ATREX
02,NORTH,NURMO
06,EAST,DIKOL
06,EAST,RANUX
06,EAST,BUBLI
06,SOUTH,PILUL
....
....
I want to read and store in 3 XMLVars array these datas.
I write this code :
Code:
(G:Var1) 0 == if{
'Project Airbus\\' (C:fs9gps:FlightPlanDepartureAirportIdent,string) scat '\\' scat 'SID.idx' scat (>C:LOGGER:openRead)
(C:LOGGER:Number) (>L:SIDnumber,enum)
1 sp0
:100
'IndexSIDRunway:',l0 (>C:XMLVARS:SearchVarName,string)
(C:LOGGER:string) (>C:XMLVARS:StringValue,string)
'IndexSIDDirection:',l0 (>C:XMLVARS:SearchVarName,string)
(C:LOGGER:string) (>C:XMLVARS:StringValue,string)
'IndexSIDName:',l0 (>C:XMLVARS:SearchVarName,string)
(C:LOGGER:string) (>C:XMLVARS:StringValue,string)
l0 ++ d sp0
l0 (L:SIDnumber,enum) < if{ g100 }
(C:LOGGER:EOF) 1 == if{ 1 (>G:Var1) }
1 (>C:LOGGER:CloseRead)
}
But it doesn't work.
The first value is read (78) because store in a L:Vars,
But I think that my synthax for the XmlVars array is not correct.
Can you tell me how to have a XMLvars array ?
Last edited:



