ToMethod

Applies to:uCalc Transform
Class:uCalc.uCalcTransform.RuleClass
Sets the text a mactch should be changed to
Syntax
To(ToStr)
Parameters
ToStr
String
New text that a match should be changed to
Returns
Type: RuleClass
Sets the text a mactch should be changed to
Remarks
When text matches the From pattern of a given rule, it it changed to the text that is set with this function.

DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="To")> _

Private Function To__(ByVal RuleHandle As IntPtr,ByVal ToStr As String) As IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="To")]

protected static extern IntPtr To_(IntPtr RuleHandle, string ToStr);
            
{DLLImport}function To__(RuleHandle: System.Pointer;ToStr: AnsiString): System.Pointer; cdecl; external uCalcDLL name 'To';

            
typedef uCalcPtr (* __To)(void *RuleHandle, CONSTCHAR ToStr ); 

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

static uCalcPtr To_(void *  RuleHandle, MARSHALSTR ToStr);
            
Prev | Next