Add Syntax Checking for Local Variables

Idea created by chivalry on Apr 24, 2017
    Active
    Score-5

    The following calculation will be rejected by FileMaker's calculation engine:

     

    Let (

      [

        _foo = "bar"

      ] ;

     

      _fo

    )

     

    But this version will be accepted:

     

    Let (

      [

        $_foo = "bar

      ] ;

     

      $_fo

    )

     

    I'd like to see FileMaker reject that calculation unless it's part of a script step and $_fo was defined earlier with Set Variable. So this work work:

     

    Set Variable [ $_fo ; Value: "baz" ]

    Set Field [ Table::field ; Value: Let ( $_foo = "bar" ; $_fo ) ]

     

    I understand there's probably no way to extend this to global variables or dynamically assigned variables (Evaluate ( "Let ( $_fo = \"baz\" ; \"\" )" )), but even an overridable warning would be helpful.