DivideStr

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

DivideStr


 

Searches for a separator character and splits the string into left and right halves.

 


syntax

DivideStr(

         str,

         separator,

         startpos,

         &leftstr,

         &rightstr

         )

 


Parameters

 

str

 

Type:

character

 

The string to be split.

 

separator

 

Type:

character

 

Separator character. If startpos is "right", only one separator character can be specified.

 

startpos

 

Type:

character

 

"left" - Split by searching from left (beginning) to right (end) for the separator character.

"right" - Split by searching from right (end) to left (beginning) for the separator character.

 

&leftstr

 

Type:

character

 

The left side of the split string is returned.

 

&rightstr

 

Type:

character

 

The right side of the split string is returned.

 

Return Value

 

 

Type:

Boolean

 

FALSE - Failure. TRUE - Success.

 


hmtoggle_plus1Explanation

 


Supported


Script Action

Browser script

×

Calculation Expression Syntax

 

 


reference