Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I am looking for a clean calc to get a string from an array, build from a value list.

I have a id then a delimiter then the string.

001Ωthis is string one

002Ωthis is string two

003Ωthis is string three

I would like a custom calc to get the string based on the choosen number.

What is holding the array? Is it all in a single text field? A repeating field? A related field?

  • Author

the list comes from a value list.

Here is where I am at, I feel it could be cleaner:

custom calc: qTip (valueList ; num)

Let ( [ vlist = ValueListItems ( Get ( FileName ) ; valueList )] ;

Substitute (

GetValue(vlist ;

PatternCount (

Left (vlist ;

Position ( vlist ; num ; 1 ; 1 )

)

; "¶" ) + 1

)

; num & "Ω" ; "")

)

If you just needed it to return the string on the nth line, you could use the MiddleValues() function:

MiddleValues ( text ; n ; 1 )

If you need it to use your index, then you could make a custom function to search the text field, or just use a calc like this:

Let(

[

index = GetAsText( Right( "000" & n; 3 ));

indexPos = Position( ¶ & text; ¶ & index & "Ω"; 0; 1 );

start = Case(indexPos; indexPos + 4);

end = Case(indexPos;Position( text & ¶; ¶; start; 1 ))

];

Middle ( text ; start; end-start)

)

BTW, If you're building this into a custom function, I'd recommend sending the return delimited text result of your value list items instead of sending the name of the value list. This should help make the CF more portable.

The function call would then look more like this:

qTip ( ValueListItems ( Get ( FileName ) ; "My Value List" ) ; num)

  • Author

Thanks Edner - i am trying it now

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.