Performing a Look-up within a Function

Performing a Look-up within a Function

Hi -
I'm having trouble fetching a string value in conjunction with a Function that uses a Form Object Argument.  I have a Tasks Form that uses a look-up to Project_Name from another form....once a Task is Completed I would like to be able to press a custom action button to have it marked completed and logged in a separate Project_Notes form.  The code below is working but it is giving me a numerical value for the Project_Name in the confirmation email.  Normally I'd do a look-up but this doesn't seem to work within the Function section.  Any tips on converting that Project_Name to a string value in the email subject line?  Thanks
  1. void Completed(Tasks Completed)
  2. {
  3.     Completed.Status = "Completed";
  4.     insert into Project_Notes
  5.     [
  6.         Added_User = zoho.loginuser
  7.         Document_Date = zoho.currentdate
  8.         Name = Completed.Project_Name
  9.         Notes = Completed.Task_Description
  10.         ]
  11.     sendmail
  12.     (
  13.         To       :  zoho.loginuserid 
  14.         From     :  "noreply@zohocreator.com
  15.          Subject  :  "A task for " + Completed.Project_Name + " has been completed" 
  16.         Message  :  zoho.loginuserid + " has marked the following task as completed:<div><br><div>" + Completed.Task_Description + "<br></div><div><br></div><div>This has been converted to a Project Note.</div></div>" 
  17.     )
  18. }