Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() '// Create a new Expression object with an initial formula. '// This uses the default uCalc instance for context. Dim expr As New uCalc.Expression("1 + 1") '// Implicitly calls .EvaluateStr() when used in a string context Console.WriteLine($"Initial value: {expr}") '// Reassign the expression to a new formula with a simple string assignment. '// This implicitly calls .Parse() behind the scenes. expr = "10 * (5 + 3)" '// Retrieve the result. For numeric results, you can assign it '// directly to a double. This implicitly calls .Evaluate(). Dim result As Double = expr Console.Write("New value: ") Console.Write(result) End Sub End Module