by Erik Stites (10 Submissions)
Category: Object Oriented Programming (OOP)
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (8 Votes)
Simple scripting language using classes. Uses callbyname function to run a classes methods. This allows for very fast parsing, because there is no IF Then or Case statements. Create a class module with the functions that you want in your scripting 'language'. Then you can simply send a string of text into the class' parse function to get the name of the function and the values to be operated on. After you have gotten the name, use CallByName with the vbMethod operator. This is a quick class (OOP) example. To keep it simple, I didn't include properties, only public and private variables.
Code Returns
The result of an operation