Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

SplitAt plugin

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
akx
Plugin Author
Posts: 7
Joined: July 20th, 2005, 3:04 pm
Location: Finland

SplitAt plugin

Post 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.
You do not have the required permissions to view the files attached to this post.

FormatC:

Post 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?

akx
Plugin Author
Posts: 7
Joined: July 20th, 2005, 3:04 pm
Location: Finland

Post by akx »

I've long lost the source code to SplitAt, but I think it doesn't require anything specific...

Post Reply