Jump to content

parse_string ( string ; pos ; delimiter )


This topic is 5962 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Description: This function will return a section of a string determined by the parameters.

string = The string to be read from

pos = The section to read

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:

parse_string ( "I like to have fun|This is useful|good for script arguments", 3, "|" )

Results:

good for script arguments

Recursive: no

Formula:

GetValue( Substitute ( string ; delimiter ; "¶" ) ; pos ) 

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
Link to comment
Share on other sites

  • 2 weeks later...

This topic is 5962 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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