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.
Printable View
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.
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
ok, I'll give it a try... thanks :)