Skip to end of metadata
Go to start of metadata

Hi,

I'm new here and not sure where and how to report this/make a change request.

I have found two small bugs in the Standards.fmp12 file, of which I have already reported the first one in the Goggle Mailing list:

 

1) Function in @Startup Layout

« $$FMP.VERSION.REQUIRED = 12.02; »
generates an error on foreign systems with a comma decimal separator.
I would suggest a comment like  // please use 12,02 if your system uses comma decimal separators
Anything else would be overkill, I fear. Like:  « GetAsNumber ( "12" & Left ( 1/2 ; 1 ) & "02" ) »   //  ;-)

2) Script: «Developer Save Backup»;  Step: « Set Variable [$path; Value:…] »; Line:  « ~filename = $timestamp & Get ( FileName ) & ".fp7"; »

Hard coding the «.fp7» isn't a good idea, as it will generate an error when you open the file i.e. in FMP12.

My suggestion:  Add another global variable in the @Startup Layout function:

$$FMP.FILEVERSION  =   RightWords ( Substitute ( Get ( FilePath ) ; "." ; " " ) ; 1 );

or you could make a function. Actually, I believe it should be part of FMP's Get functions « Get ( FileVersion ) »

 

Thanks!

Gary Czychi

 

  • No labels