VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

VB Macro Substitution Simulation with the ScriptControl

Rodolfo Gonzalez Ruiz  (1 Submission)   Object Oriented Programming (OOP)   Visual Basic 3.0   Advanced   Wed 3rd February 2021

At last!!! Something that nearly matches the great functinallity that macro substitution gives in Visual FoxPro through the & Command... in this case we simulate it using the Microsoft Script Control, which allows you to run VBSCRIPT code through the control's methods, simply passing it code as a string parameter.

Assumes
You must have the ScriptControl registered and available to your VB project... (named 'Microsoft Script Control 1.0' in the References section of Visual Basic) (its usual location is 'windows\system\msscript.ocx' or 'winnt\system32\msscript.ocx' accordingly).

Rate VB Macro Substitution Simulation with the ScriptControl (6(6 Vote))

Download VB Macro Substitution Simulation with the ScriptControl

VB Macro Substitution Simulation with the ScriptControl Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters