DefineTransformMethod

Applies to:uCalc Transform
Class:uCalc
Defines a transform
Syntax
DefineTransform(FromExpr, ToExpr, ItemHandle)
Parameters
FromExpr
String
Pattern representing the text that must be transformed
ToExpr
String
The text that the matching test is transformed to
ItemHandle
ADDR
(Default = 0)
Returns
Type: Item
Defines a transform
Remarks
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="DefineTransform")> _

Private Function DefineTransform__(ByVal uCalcHandle As IntPtr,ByVal FromExpr As String , ByVal ToExpr As String , ByVal ItemHandle As IntPtr  ) As IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="DefineTransform")]

protected static extern IntPtr DefineTransform_(IntPtr uCalcHandle, string FromExpr ,  string ToExpr , IntPtr ItemHandle   );
            
{DLLImport}function DefineTransform__(uCalcHandle: System.Pointer;FromExpr: AnsiString ; ToExpr: AnsiString ; ItemHandle: System.Pointer): System.Pointer; cdecl; external uCalcDLL name 'DefineTransform';

            
typedef uCalcPtr (* __DefineTransform)(void *uCalcHandle, CONSTCHAR FromExpr  ,  CONSTCHAR ToExpr  ,  void * ItemHandle  ); 

            
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "DefineTransform")]

static uCalcPtr DefineTransform_(void *  uCalcHandle, MARSHALSTR FromExpr  ,  MARSHALSTR ToExpr  ,  void *   ItemHandle);
            
See also
Prev | Next