Using multiple variables in email body

david.weeksdavid.weeks Member Posts: 96
edited 2004-03-05 in Navision Attain
Hello All,

The following text creates an email.
I want to add multiple variables into the LtxtEmailBody variable. (the body)
I could put one variable for example Description directly in there but I want to add Quantity, Unit Price, No. etc.
I have tried using LtxtEmailbody := Description, Quantity but obviously I get syntax errors. Am I missing something very simple here?

"LcduMail.NewMessage(TechApproverEmail,'','Quote raised - Waiting for Technical Approval',LtxtEmailbody,'',FALSE);"

Thanks

Comments

  • david.weeksdavid.weeks Member Posts: 96
    Hello All,

    Please ignore this one, I have sorted it out.

    Just need to add (obviously I know, lol) + in between the various variables, and "" depending on the type of variable.

    It does get a little tricky if we are dealing with decimal or boolean variables but once you have worked it out - no probs.

    Cheers
  • DenSterDenSter Member Posts: 8,307
    Use the FORMAT command, which translates any tyoe variable into text for these purposes, like FORMAT(MyBoolean) and FORMAT(MyDecimal).
Sign In or Register to comment.