This algorithm can be generalized to a function:

    function List()
    {
      var result = "";
      for (var i = 0; i < arguments.length; i++)
      {
        if (i)
        {
          if (arguments.length > 2)
            result += ",";
          result += " ";
          if (i == arguments.length - 1)
            result += "and "
        }
        result += arguments[i];
      }

      return result;
    }

You can call it like so:

  return List("parsley", "sage", "rosemary", "thyme");

Or:

  return List(Field("Procedure 1"), Field("Procedure 2"),
Field("Procedure 3"));

Dan


--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to