Crystal Reports How To — Split Comma Separated Numbers

Peter Musu`
1 min readAug 3, 2020

Crystal Reports How To — Split Comma Separated Numbers

//create an array of strings by parsing a underscore-delimited string field Stringvar Array strings := Split({table.string_field}, “_”);

//empty numeric array; sized to match Numbervar Array numbers; Redim numbers[Ubound(strings)];

//populate array Numbervar i; for i := 1 to Ubound(strings) do ( numbers[i] := ToNumber(strings[i]) );

//return numbers;

https://stackoverflow.com/questions/13410798/how-to-split-a-string-and-make-an-array-of-integers-in-crystal-report

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response