Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

How to split a string and fill an int array with the resulted string elements.

$
0
0

I have a String {?empNoList} which i want to split by the delimiter '_' and the resulted strings should be converted and filled into a numberVar array. Is this possible with Crystal Report.

The string contains a list of employee IDs which is originally int.I want to query the db using these employee numbers and get the result into the crystal report.

I have tried it upto this

numberVar array empNoIntList;

Local NumberVar strLen := {?empNoListLength}

Local NumberVar i;

for i :=  0 to strLen do 
(
    empNoIntList [i] = Split ({?empNoList},"_")
)

I am very to Crystal Report and i'm not sure wheher this is possible.It would be a great help if anybody can help me out. 


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>