Author Topic: "Show full path in the filename item" option makes F:=FP  (Read 428 times)

0 Members and 1 Guest are viewing this topic.

Padanges

  • Newbie
  • *
  • Posts: 179
"Show full path in the filename item" option makes F:=FP
« on: October 10, 2016, 05:57:03 AM »
Hi,
checking option "Show full path in the filename item" in the Preferences.../Appearance menu changes the [F] value to [FP] and this in turn can break all the Dynamically Calculated columns which depend on using [F] - for example, just observe that "length(F)" changes its value accordingly after the preferences change! But we already have [FP] as a separate keyword, wouldn't it be better to leave [F] unaffected and to change "File name" default field evaluation from F to FP instead? After finding this out, do we have to rewrite/update all our Dynamic Eval codes which used [F] reference?  :(


Regards

RTT

  • Administrator
  • *****
  • Posts: 764
Re: "Show full path in the filename item" option makes F:=FP
« Reply #1 on: October 11, 2016, 04:11:47 PM »
The FP returns the file directory, so that preferences option is making the F to return FP+F, not just FP, and this happens because the code is calling the same routines that are used to fill the grid cells, and that preferences setting makes the filename column to show the full path.
But indeed, to deal with this fields from custom code, it is best to keep them separated, so I've now made the necessary changes.