It’s wrong : Departure and destination are not deleted as we can see with these few lines of code :
- Code: Select all
var fp = createFlightplan();
fp.departure = airportinfo("LFOH");
fp.destination = airportinfo("LFPG");
var navaid = findNavaidsByID("DVL");
navaid = navaid[0];
var wp = createWPFrom(navaid);
fp.insertWP(wp,1);
print(fp.getPlanSize()); ## return 3
fp.cleanPlan();
print(fp.getPlanSize()); ## return 2
for (var i=0;i<fp.getPlanSize();i+=1) {
print(fp.getWP(i).wp_name);
} ### return « LFOH » and « LFPG »
Can I correct the wiki ?