Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 05/11/2024 in all areas

  1. Here are just 2 ideas that spring to mind: Let ( [ lastChar = Right ( Trim ( text ) ; 1 ) ; lastPos = Position ( text ; lastChar ; Length ( text ) ; -1 ) ] ; Left ( text ; lastPos ) ) or: Let ( tmp = Trim ( "a" & text ) ; Replace ( tmp ; 1 ; 1 ; "" ) )
    2 points
  2. You can construct the calculation along the lines of: List ( "image:Photos/" & ArtistName & ".jpg" ; "image:Photos/" & ArtistName & ".png" ) This will create both paths as a return-separated list. The container field will then go over this list and display the first image it can find.
    1 point
  3. MBS Plugin 14.2 was Released today: Your function wish is included: Text.LeftTrim Trims whitespace on the left side. All ✅ Server Text.RightTrim Trims whitespace on the right side. All ✅ Server
    1 point
  4. Like this - although I think Michael is right about his calc's sansrepeaters.fmp12
    1 point
  5. Well, see what you can get from the temple I used for getting my thoughts straightened: --sd Untitled.fmp12
    1 point
  6. Define a repeating calc field with 9 repeatings, containing this: Let( [ tsf = Extend( TotalSchoolFees ); ef = Extend( EnrolmentFee ); ss = Extend( Scholarship ); rg = Round( Div( tsf - ef - ss; 9 ); -2 ) ]; Case( Get( CalculationRepetitionNumber ) - 1; rg; tsf - 8 * rg - ef - ss ) ) Imports from internal tables allows then to split each repeater out into individual records, in a related table, but today with the fm20 "Layout calculation" would I perhaps use the portal row number instead of Get( CalculationRepetitionNumber ) and then get rid of the Extend( shenanigans. Then would only data in the portalized just have one single boolean field, with a checkmark.... --sd
    1 point
  7. My preferred location is inside a script, using the Insert Text step to populate a variable. This is especially convenient for storing non-native code (such as SQL, AppleScript, HTML, Javascript, XSLT etc.) without having to escape it.
    1 point
  8. I'll add it to the plugin for you: Text.RightTrim and Text.LeftTrim functions.
    1 point
This leaderboard is set to Los Angeles/GMT-07:00
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.