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.

remove_section ( string ; pos ; delimiter )

Featured Replies

Name & Parameters: [color:red][big] remove_section ( string ; pos ; delimiter ) [/big]

Description: Will remove a section from the given string.

string = The string to be altered

pos = The section to remove

delimiter = The section definer

For the delimiter, it is recommended to use one character long delimiters, for FM returns unconsistent values. This isn't saying it won't work, just don't count on it.

Sample Input:

remove_section ( "this-is-not-so-cool" , 3 , "-" )

Results:

this-is-so-cool

Recursive: no

Formula:

Let ([

$cfstr = string;

$cfstr = Substitute ( $cfstr ; delimiter ; "¶" );

$cflen = Length (GetValue( $cfstr ; pos ));

$cfposition = Position ( "¶" & $cfstr ; "¶" ; 1 ; pos );

$cfstr = Replace ( $cfstr ; $cfposition ; $cflen+1 ; "" )

];

Substitute ( $cfstr ; "¶" ; delimiter )

) 

Required Functions:

Author(s):) Julian L

Date: 11/20/07

Credits:

Disclaimer:

FM Forums does not endorse or warrantee these files are fit for any particular purpose. Do not post or distribute files without written approval from the copyright owner. All files are deemed public domain unless otherwise indictated. Please backup every file that you intend to modify.

Edited by Guest

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.