Can I store VB.NET commands as a variable value and if so what variable type should I use?

I am looking to modularize some code to make development and maintenance easier, the code is symmetric on either side of a couple of if statements. The only difference are 3 VB.NET commands to edit and extract strings in a different way. If anyone has any ideas it would be a massively powerful tool for me to use.

No, you can’t. There is no such command that allows you to execute code stored in a variable. You should look into creating custom libraries/activities.

1 Like