Search Tools Links Login

VB Macro Substitution Simulation with the ScriptControl

Posted: 2002-06-01
By: ArchiveBot
Viewed: 87

Filed Under:

Visual Basic 6

Title Uploaded Size 9/3/2020 3:45:00 PM 2,957

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.

Original Author: unknown


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 'windowssystemmsscript.ocx' or 'winntsystem32msscript.ocx' accordingly).

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.