How Can We Help?
I get the following error when I try to use the customFunctions.GetFileName() functionIs a Stream Objects that performs mathematical and statistical operations. in XMPro 5.1.1.
I am running the site in managed code (C#).
The name ‘customFunctions’ does not exist in the current context.
Answer
The managed code to use would be:
Functions customFunctions = new Functions(); string filename = customFunctions.GetFileName(activity.GetControlValue("FileAttachmentControlName")); activity.SetControlValue("ControlToSet",filename);
I have noticed the drag and drop, excludes the declaration which will be amended to include.
Resolution: VB.Net
For VB.Net scripting:
Dim customFunctions As New Functions() Dim filename As String = customFunctions.GetFileName(activity.GetControlValue("FileAttachmentControlName")) activity.SetControlValue("ControlToSet", filename)
Comments are closed.