User Tag List

Results 1 to 6 of 6

Thread: split string in 2 string when there is a new line

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Dec 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    split string in 2 string when there is a new line

    Hy everyone,
    I wanna just ask if its possible to split a string every time the string going to a new line?
    I post an exemple picture of what I need.
    Images attachées Images attachées

  2. #2
    Clicker Fusion 2.5

    Join Date
    Jul 2014
    Location
    Spain
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi!

    Try with this expression:

    For extract first line

    Mid$(string$( "String" ), 0, Find(string$( "String" ), NewLine$, 1))

    For extract second line

    Mid$(string$( "String" ), Find(string$( "String" ), NewLine$, 1), Len(string$( "String" )))

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Dec 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    unfortunatly it doesn't work : (

    The first expression do nothing, and the second expression simply make a copy of the whole string.
    Anyway, thank you Jmatencia for try to help

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,313
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Use a string tokenizing / parsing extension - there are quite a few to choose from - and set the delimiter to newline$ (or you can copy & paste a newline character from notepad).
    Alternatively, you may be able to just use a list object.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Jul 2014
    Location
    Spain
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ciaciosacchetti View Post
    unfortunatly it doesn't work : (

    The first expression do nothing, and the second expression simply make a copy of the whole string.
    Anyway, thank you Jmatencia for try to help
    I tried.

    Sorry, but maybe I don't explain well. My English is bad.
    Look at the example.
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Dec 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My English too, i'm from Italy

    Ok, now I understand, it work because you break the string in the first string. I wanna make something like this but in all string. I put an exemple because is impossible to explein in English
    SplitString2.mfa as you can see in this case it doesn't work

    Btw thank you so much guys for the quick answer!

Similar Threads

  1. Replies: 6
    Last Post: 2nd June 2018, 04:16 PM
  2. How to detect line number in string?
    By Youthinkasido in forum Fusion 2.5
    Replies: 0
    Last Post: 2nd April 2017, 04:45 PM
  3. How to split the string 12345?
    By Jase in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 22nd June 2010, 04:35 PM
  4. String Split
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st September 2008, 03:11 PM
  5. Get line in string?
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th March 2008, 02:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •