I have created an array. I have written a formula that displays the result of the array using the join function. Some of the results end with lastname, firstname///// . My question is: How do I get rid of the /// at the end of the name. Details follow:
Declare Formula
WhilePrintingRecords;
Global stringvar Array vOperator;
Redim vOperator[DistinctCount({StudyClinicians.ClinicianRole})];
Global Numbervar vCountOperator := 0;
Populate Formula
WhilePrintingRecords;
Global Numbervar vCountOperator ;
Global Stringvar Array vOperator ;
if {@Operator} <> "NULL" then
if not ({StudyClinicians.ClinicianFullName} in vOperator) then
(
vCountOperator := vCountOperator + 1;
vOperator[vCountOperator] := {@Operator} ;
) ;
Display Formula
WhilePrintingRecords;
Global StringVar Array vOperator;
Join(vOperator, "/")
Result (1 of many)
Smith,John////
Declare Formula
WhilePrintingRecords;
Global stringvar Array vOperator;
Redim vOperator[DistinctCount({StudyClinicians.ClinicianRole})];
Global Numbervar vCountOperator := 0;
Populate Formula
WhilePrintingRecords;
Global Numbervar vCountOperator ;
Global Stringvar Array vOperator ;
if {@Operator} <> "NULL" then
if not ({StudyClinicians.ClinicianFullName} in vOperator) then
(
vCountOperator := vCountOperator + 1;
vOperator[vCountOperator] := {@Operator} ;
) ;
Display Formula
WhilePrintingRecords;
Global StringVar Array vOperator;
Join(vOperator, "/")
Result (1 of many)
Smith,John////