I posted ufn_Mline at
http://www.berezniker.com/display/SQL/Mline+UDF+-+Return+specific+line. It's more an example than finished UDF. I didn't do much testing on it. Keep in mind that in general UDFs are much sloower than built-in functions.
SELECT cname,
dbo.ufn_Mline(mnotes,1) AS cname1,
dbo.ufn_Mline(mnotes,2) AS cname2,
dbo.ufn_Mline(mnotes,3) AS cname3
FROM vmax
--sb--