trim string

If you require help or assistance with anything then please post here

Moderators: electrogear, exonerate

trim string

Postby tester on Fri Mar 02, 2012 12:13 pm

How to trim string according to desired sring lenght? I mean a situation, in which on input - you have various-lenght labels coming in, and on output - you get only N first letters (let say 3 or 4?) from that input. "Format string" primitive seems to work only with numbers or I don't know the syntax.
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 689
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet

Re: trim string

Postby CoreStyler on Fri Mar 02, 2012 12:22 pm

String extract.
String Extract.PNG
String Extract.PNG (19.52 KiB) Viewed 214 times


To take only first letters, just make index 0 where pos and your count.
http://www.thecorestylerz.net
Sound Design, synth development and websites building...
Image
SM COMMUNITY IS MOVING TO
www.synthmakers.net
User avatar
CoreStyler
essemilian
 
Posts: 474
Joined: Sun May 23, 2010 1:25 pm

Re: trim string

Postby tester on Fri Mar 02, 2012 12:26 pm

Thanks. I just found simpler way. "String Split" primitive. Input string is split to left/right side according to split position from the left.
Need to take a break? Looking for relaxing sounds? I have something right for you.
(by purchasing, you are also supporting further development of related projects).
Thank you for your contribution.
tester
smanatic
 
Posts: 689
Joined: Wed Jan 18, 2012 9:52 pm
Location: Poland, internet


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 0 guests