Up to FB6 we could use Action.GetVersionInfoKey("Ext") to determine the file extension of a compiled Delphi project. Since we migrated to FB7 the result of this function is always empty. The help file only mentions this functions without further explanation and is still at a state of Delphi 2007.
What needs to be changed to get the correct result?
I’m guessing that you must have added that version info key to the action in FB6 as there is no standard “Ext” version info key. If I add that key on the version info page then the script works fine.
Yes, indeed, the "Ext" version info key was manually added to the FB6-script. But I created the FB7-script by openeing the FB6-script in FB7 und saving it as FB7-script. The key didn't get saved, and when I add it again manually then the first call gives the correct result, but then "Ext" disappears again.
Currently, my solution is the VBScript line:
Action.SetVersionInfoKey "Ext", "scr"
This works, but I think FB7 should remember my entries in the property list.
Which build of FB7 are you using? What other settings do you have on the action? I just a quick test, added a delphi action, added a new key, saved and closed the project and then re-opened it and the key is there.