The attached "Using a class defined in a Cielo script in the Cielo Explorer.pdf" document illustrates the basic process to create a Cielo script containing a public class which contains as public method and then illustrates how to use create and instance of that class in the Cielo Explorer and then use the public method contained in that class in the Cielo Explorer.
The attached "Local Variable Information From A Cielo Script Function.pdf" document illustrates how to obtain local variable values when an exception occurs in a function (method) contained in a Cielo script. This technique can be very useful when identifying programming errors in a Cielo Script, because Visual Studio debugging capabilities are limited within a Cielo Explorer script.
The attached "The attached "Control State Using Script Classes.pdf" document illustrates how classes may be created in a Cielo Explorer script so that user-defined variables and functions and the system "state" can be precisely controled in the Cielo Explorer session.
The principles illustrated here also apply to VisualAPL class libraries (compiled .Net assemblies).