How to make use of Modules in Mail & Deploy?

How to make use of Modules in Mail & Deploy?

FIRST CREATED ON 17 May 2023  I  AUTHOR Emma Camacho

You can also write your own Visual Basic .NET code in a module. A module is a set of Visual Basic .NET code that contains functions to be used from any expression within the repository. This allows you to provide additional functionality to expressions.

The following module, for instance, provides to functions; one that returns the current year and month and one that returns the current year, month, and day:

Function GetYearMonth()
Return Date.Now.Year.ToString("0000") & Date.Now.Month.ToString("00") 
End Function


Function GetYearMonthDay() 

Return Date.Now.ToString("yyyyMMdd") 

End Function

Any of these functions can be called by using the following syntax in an expression:

GetYearMonth()

Functions contained in modules may also contain parameters.



Info

Looking for Additional Guidance?

If you require more detailed information or further assistance, please visit our comprehensive Online Documentation. Our resources are designed to help you navigate all features and functionalities effectively.