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;

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