Click to See Complete Forum and Search --> : Macro Sustitutions


Reznor_X
January 20th, 2000, 02:28 PM
Is there a way to generate CODE on the fly? I mean, some way to make the code dynamic? ... a while ago in Clipper there was a thing called macro sustitution, it's purpose was to create code on the fly depending on the current parameters.

Chris Eastwood
January 20th, 2000, 02:41 PM
You can use the Microsoft Scripting Host controls that come with VB6 (or download them for VB5 at http://www.microsoft.com/scripting (I think it's there anyhow).

These will allow you to programatically create scripts on the fly that can use COM automation. The scripts can also be read in from any usual datasource (db, files etc).


Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb

Reznor_X
January 20th, 2000, 03:17 PM
ok, I'll give it a try... thanks :)