2,732
edits
Red Leader (talk | contribs) (→Functions: More doc on read_airport_properties()) |
Red Leader (talk | contribs) (→read_airport_properties(): Finish]) |
||
Line 198: | Line 198: | ||
|param3 = target | |param3 = target | ||
|param3text = Optional place to put the results in the [[Property Tree]]. May be either a <code>props.Node</code> object or a property path. | |param3text = Optional place to put the results in the [[Property Tree]]. May be either a <code>props.Node</code> object or a property path. | ||
|example1 = | |example1 = var data = io.read_airport_properties("KSFO", "ils"); # the airport might need changing | ||
props.dump(data); # dump data | |||
|example2 = var node = props.globals.getNode("demo", 1); | |||
io.read_airport_properties("KSFO", "ils", node); # the airport might need changing | |||
props.dump(node); # dump data | |||
|example3 = var path = "/demo"; | |||
io.read_airport_properties("KSFO", "ils", path); # the airport might need changing | |||
props.dump(props.globals.getNode(path)); # dump data | |||
}} | }} | ||