Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Use of Split Function in Reports


Use of Split Function in Reports

Author
Message
talk2riya15
talk2riya15
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 98
Hi EveryBody,

Can you please telll me how to use Split Function in Reports.

I have done in following way.but it displaying errors.

1.=cstr(FieldName1.value).Split(",",1)

Advance Thanks
checkai
checkai
SSC-Enthusiastic
SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)

Group: General Forum Members
Points: 173 Visits: 412
What are you attempting to do? A data example will help. I'm wondering if you're needing this function instead...this will take a multi-select parameter and parse them out by commas...

=Join(Parameters!projectTypeID.Label,", ").ToString


becklery
becklery
SSC-Enthusiastic
SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)

Group: General Forum Members
Points: 143 Visits: 187
Hi, talk2riya15.
Maybe you can try RAQ Report, for it provides a great number of string functions for users. Of course, split() is one of them.

Syntax:
split( srcExp,sepExp{,boolExp})
Argument:
srcExp The string to be split.
sepExp The separator.
boolExp The parameter option which decides whether to split with the separator between two quotation marks, or brackets. True means to split, while false means not. The default value is false.

Examples
(1) =split("ab;cd;ef;tg;tt",";")
The return value is ["ab","cd","ef","tg","tt"].
(2) =split("ab;c'd;e'f;tg;tt",";",false)
The return value is ["ab","c'd;e'f","tg","tt"].
(3) =split("ab;c[d;e]f;tg;tt",";",true)
The return value is ["ab","c[d","e]f","tg","tt"].

RAQ Report: Web-based Excel-like Java reporting tool
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search