loName = split_name(Schedule.s_Pat_Name) NewFirstName = loName.FirstName NewMidName = loName.MiddleName NewLastName = loName.LastName FUNCTION split_name LPARAMETERS tcName (Other stuff going on here) loSplitName = CreateObject('Empty') addproperty(loSplitName, 'FirstName', SomeNewValueForFirstName) addproperty(loSplitName, 'MiddleName', SomeNewValueForMiddleName) addproperty(loSplitName, 'LastName', SomeNewValueForLastName) RETURN loSplitName>The values of these variable are populated in the Split_Name function, but they still are empty after the function runs. I must be not using the reference correctly.
>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 > >