Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() Dim UserText As String = "The cat saw another cat." t.Text = UserText '// Define a rule and hold its handle Dim catRule = t.FromTo("cat", "dog") Console.Write("1. Rule Active (Default): ") Console.WriteLine(t.Transform()) '// Deactivate the rule catRule.Active = false '// Re-run the transform to see the change Console.Write("2. Rule Inactive: ") t.Text = UserText Console.WriteLine(t.Transform()) '// Reactivate the rule catRule.Active = true Console.Write("3. Rule Reactivated: ") Console.WriteLine(t.Transform()) End Sub End Module