How can I insert a function into Datareport's text field?

Ex: myReport.Section(i).txtMyText.Datasource = MyFunction(Fieldname)