Sample function

Sample Function

Let us create a simple function to calculate the number of days between two given dates.

  1. Specify the function name as CalculateDays.
  2. Add a new namespace and name it Calculations.
  3. Select Return Type as int. 
  4. Specify arguments as sdate and edate of type date
  5. Click CREATE. 
  6. Add the following deluge script and click SAVE FUNCTION.
  7. You can use the Execute option to test if your function is executed as defined. Specify the required values as arguments to the function, and click on SUBMIT.
  8. The following image displays the function result.

Related Topics

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: