>NewFirstName = '' >NewMidName = '' >NewLastName = '' > >cLastFirst = split_name(Schedule.s_Pat_Name, @NewFirstName, @NewMidName, @NewLastName) > > > >FUNCTION split_name > > LPARAMETERS tcName , taNewFirstName, taNewMidName, taNewLastName > > (Other stuff going on here) > > NewFirstName = SomeNewValue > NewMidName = SomeNewValue > NewLastName = SomeNewValue > > RETURN > >Assign your new values to the parameters, not to the variables.