Hi All.
Noob.Person1[Scott] needs a bit of syntax help.
What's the correct way to handle the "l" and "f" variables in the loop below? It doesn't like the f(i) business.
if (xfa.resolveNode("ExpenseClaim.Page2.DistanceRecord.TableKM.Row1["+ro wNum+"]").Locations.Location1.rawValue != null
{
l1 = xfa.resolveNode("ExpenseClaim.Page2.DistanceRecord.TableKM.Row1["+row Num+"]").Locations.Location1.rawValue;
l2 = xfa.resolveNode("ExpenseClaim.Page2.DistanceRecord.TableKM.Row1["+row Num+"]").Locations.Location2.rawValue;
l3 = xfa.resolveNode("ExpenseClaim.Page2.DistanceRecord.TableKM.Row1["+row Num+"]").Locations.Location3.rawValue;
l4 = xfa.resolveNode("ExpenseClaim.Page2.DistanceRecord.TableKM.Row1["+row Num+"]").Locations.Location4.rawValue;
l5 = xfa.resolveNode("ExpenseClaim.Page2.DistanceRecord.TableKM.Row1["+row Num+"]").Locations.Location5.rawValue;
for (var i=1; i<6; i++)
{
if (l(i)== 15)
{
var f(i) = Locations.Location.item(i).somExpression;
xfa.host.resetData(f(i));
}
trip = distance [l(i)] [l(i + 1)];
this.rawValue = trip + trip;
}
Thanks.