Lasso Soft Inc. > Home

[ String->Substring ]

Method

[String->Substring] returns a substring. The start of the substring is defined by the first parameter and the length of the substring is defined by the second parameter. Requires two integer parameters.

  • Syntax
String Variable->substring(OffsetLength)
Examples
  • Beginner

To return the first 1024 characters from a field:

Use the [String->Substring] method to return the first 1024 characters of a field value. The field Description is stored in a variable by the same name and then trimmed to 1024 characters.

Code

var(Description = field('Description'))
$Description->substring(1, 1024)

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft