Self-generated code processing

With the following code, is there a way use the StringOperation value as code to valorize Result as “ABC”?

Dim Source as String = “ABCDEF”
Dim StringOperation as String = “Left(Source, 3)”
Dim Result as String

Result = …

Any suggestion is appreciated
Thanks in advance

Pietro

Take a look at XojoScript

The following thread contains some examples on how to evaluate expressions with XojoScript that might be helpful…

https://forum.xojo.com/10590-simple-calculation

Perfect.
Solved.

Thanks to everybody.

Pietro