Split function

  • I can't get the syntax right for a split function.

    I want to split the following field to separate lines in the report:

    004 - Grades 1 Through 8*010 - Business, Grades 7 Through 12*

    The * is the delimiter.

    I tried this:

    =Split(Fields!EndorseType.Value, "'*'",-1,1)

    Thanks for your help.

  • That syntax looks correct. What result are you getting?

    [font="Comic Sans MS"]toolman[/font]
    [font="Arial Narrow"]Numbers 6:24-26[/font]

  • I get #ERROR in the report where I want the data displayed.

    Thanks.

  • I wonder if it just doesn't like * as a delimiter, trying to multiply something. Can you change it to something more traditional like a comma?

    [font="Comic Sans MS"]toolman[/font]
    [font="Arial Narrow"]Numbers 6:24-26[/font]

  • Tried that. Same error.

    Thank you.

  • I copied out your sample, and got single quotes (') around the *. Try removing that.

  • Split returns an array. Maybe you can't put the results into a text object.

  • Of course, good catch!

    Try instead replacing the "*" with a CRLF.

    P.S. What was the target object by the way?

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply