Brian Dunning's FileMaker Custom Functions

AddRightToListValues

I would to be able to add the value for the left nor form the right can you help

  Be the first to rate this function Log in to vote

Michael Shakaid   Michael Shakaid - Show more from this author
GalGadol
https://galgadol.com

Share on Facebook Share on Twitter

  Sample input:
RectangleArea ( 2 ; 3 )
  Sample output:
6

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

The original function addting a value to the right I would like it to be able to the left

tk

 

Comments

Menno van Beek   Menno van Beek, Van Beek Zakelijke Software
Nov 27, 2021
This not a blog for asking questions. It is only publishing custom function that people would like to share. Maybe you can remove this "function"? Having said that, the solution to your question could be something like this:

AddConstantToListValuesSide ( theList ; theConstant ; theSide ) /* 0 for left and 1 for right */

While ( [
i = 0 ;
result = ""
] ;
i < ValueCount ( theList )
; [
i = i + 1 ;
result = List ( result ;
if ( theSide ≠ 1 ; theConstant ) &
GetValue ( theList ; i ) &
if ( theSide = 1 ; theConstant ) )
] ;
result
)
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: