vb.net scripting

vb.net scripting

Post by John » Wed, 17 Aug 2005 22:10:33


Is it possible for a .net app to load vb.net source at runtime and run it,
like any other scripting language? Basically I want the advanced app users
to be able to add vb.net code of their own to the app to customise its
behaviour such as additional event trapping, setting some defaults for
fields before a record is saved etc.



vb.net scripting

Post by Stuar » Thu, 18 Aug 2005 02:58:29

I can't tell you how, but SageMMS does exactly this, customisation scripts
are dropped in a specific folder and read by a specific Sage DLL. Curiously,
the scripting language is VB.NET, but Sage MMS is written in C#, so the
resulting script is case-sensetive - eeww!
Each script must share the name of the module to which it applies, and
conform to:

module addInModule

public sub main
end sub

end module

Perhaps while giving no help at all I shown it is possible...

Good Luck