shared stringvar gps:="";
if {emp_groups.group_code} = "COACHEDU" Then gps := gps + ", " + "Coach";
if {emp_groups.group_code} = "HRA" Then gps := gps + ", " +
"HRA2012";
if {emp_groups.group_code} = "LUNLRN" Then gps := gps + ", " +
"Lunch&Learn";
if {emp_groups.group_code} = "PHYSICAL" Then gps := gps + ", " +
"Phyiscal";
if {emp_groups.group_code} = "PHYEX" Then gps := gps + ", " +
"Exercise";
if {emp_groups.group_code} = "WGHTLOSS" Then gps := gps + ", " +
"WeightLoss";
if gps <> "" then
mid(gps, 3) //trim first comma
else
gps
this will return a string of groups the person belongs to.
is this what you are looking for?