So I learned about the lookslike function and changed my for loop into the following:
Local StringVar inString := {rsCustomProgram.Days};
Local StringVar outString := "";
Local StringVar finalString := "";
if lookslike({rsCustomProgram.Days},'*,0,*')
then outstring:= "Monday";
if lookslike ({rsCustomProgram.Days},"*,1,*" )
then outstring:= outstring + ", " + "Tuesday";
if lookslike({rsCustomProgram.Days},"*,2,*")
then outstring:= outstring + ", " + "Wednesday";
if lookslike({rsCustomProgram.Days},'*,3,*')
then outstring:= outstring + ", " + "Thursday";
if lookslike({rsCustomProgram.Days},'*,4,*')
then outstring:= outstring + ", " + "Friday";
if lookslike({rsCustomProgram.Days},'*,5,*')
then outstring:= outstring + ", " + "Saturday";
if lookslike({rsCustomProgram.Days},'*,6,*')
then outstring:= outstring + ", " + "Sunday";
finalString := outString + finalString;
finalString
However, what it's giving me now is everything! Doesn't matter what is in rsCustomProgram.Days, it gives me the whole Monday-Sunday string as the result. What am I doing wrong? Crystal totally confused me. Perhaps there is some kind of problem with the syntax?