Page 1 of 1

SplitAt plugin

Posted: July 20th, 2005, 3:19 pm
by akx
Ever needed to split a string and only show part(s) of it?
SplitAt does exactly that.
[url]http://www [dot] devever [dot] net/pegercer/akx/dl/lcdsmartie/splitat [dot] zip[/url] broken link - the file is attached to this post

Syntax

Code: Select all

$dll(splitat,1,string,options)
Options is a list delimited with double semicolons (;;).
  1. Delimiter string.
  2. Starting split point, 0 being the first segment. Optional, defaults to 0.
  3. Ending split point. Optional, defaults to 1000.
  4. Only split if number of segments >= this. Optional, defaults to 0.
For split points, you can use negative numbers (like in the Python language) to express indices from the end of the string. That is, -1 is the last segment.

Example
Example: "The Cows Are Flying!" => "The Cows":

Code: Select all

$dll(splitat,1,The Cows Are Flying!, ;;0;;1)
Enjoy.

Posted: August 5th, 2007, 12:04 am
by FormatC:
What are the requirements of this plugin? VB Runtimes DOT Net etc? I can't get it too run what do I need to install?

Posted: August 6th, 2007, 9:40 am
by akx
I've long lost the source code to SplitAt, but I think it doesn't require anything specific...