Split() function

October 23, 2007 at 7:31 am | In Crystal Report | 2 Comments

Using split() function with array in crystal report

// 1) To return single element value in string
local stringVar array ;
local stringVar returnValue;

:=Split({},’;'); // Split(,delimeter);

returnValue:=[0];

// 2) To return all elements in string
local numbervar asize := ubound();
local numbervar x;
local stringvar returnValue:=”";

for x := 1 to asize do
(
returnValue := returnValue & [x] & ” “;
);

returnValue;

2 Comments »

RSS feed for comments on this post. TrackBack URI

  1. This is very useful function
    Thank U

  2. Thanks Rajashri for your comment.


Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.