+ Reply to Thread
Results 1 to 3 of 3

My problem with char(30)

  1. #1
    Registered User
    Join Date
    01-14-2006
    Posts
    2

    Unhappy My problem with char(30)

    Hi to all!

    I donīt understand at all the role of char(30) in the formula

    =RIGHT(F2;LEN(F2)-FIND(CHAR(30);SUBSTITUTE(F2;".";CHAR(30);LEN(F2)-LEN(SUBSTITUTE(F2;".";"")))))

    Char(30) is record separator, but in a string (e.g. 1 Prelude.mp3) ????
    What does it mean?

  2. #2
    JE McGimpsey
    Guest

    Re: My problem with char(30)

    It's a placeholder that is presumably not likely to be found in the
    string in F2.

    The outside SUBSTITUTE() function replaces the last "." character in F2
    with CHAR(30). That character is then used by FIND() to locate where the
    last "." is.

    One could save a function call using

    =MID(F2; FIND(CHAR(30); SUBSTITUTE(F2;".";CHAR(30);
    LEN(F2)-LEN(SUBSTITUTE(F2;".";""))))+1;255)



    In article <[email protected]>,
    omikron123 <[email protected]>
    wrote:

    > I donīt understand at all the role of char(30) in the formula
    >
    > =RIGHT(F2;LEN(F2)-FIND(CHAR(30);SUBSTITUTE(F2;".";CHAR(30);LEN(F2)-LEN(SUBSTIT
    > UTE(F2;".";"")))))
    >
    > Char(30) is record separator, but in a string (e.g. 1 Prelude.mp3)
    > ????
    > What does it mean?


  3. #3
    Registered User
    Join Date
    01-14-2006
    Posts
    2
    Thank you very much.

    Quote Originally Posted by JE McGimpsey
    It's a placeholder that is presumably not likely to be found in the
    string in F2.

    The outside SUBSTITUTE() function replaces the last "." character in F2
    with CHAR(30). That character is then used by FIND() to locate where the
    last "." is.

    One could save a function call using

    =MID(F2; FIND(CHAR(30); SUBSTITUTE(F2;".";CHAR(30);
    LEN(F2)-LEN(SUBSTITUTE(F2;".";""))))+1;255)



    In article <[email protected]>,
    omikron123 <[email protected]>
    wrote:

    > I donīt understand at all the role of char(30) in the formula
    >
    > =RIGHT(F2;LEN(F2)-FIND(CHAR(30);SUBSTITUTE(F2;".";CHAR(30);LEN(F2)-LEN(SUBSTIT
    > UTE(F2;".";"")))))
    >
    > Char(30) is record separator, but in a string (e.g. 1 Prelude.mp3)
    > ????
    > What does it mean?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1