Link to home
Start Free TrialLog in
Avatar of chlade
chlade

asked on

Execute code stored in a database field

Is there a way to execute code that is not embedded in the program?

For instance, let's say I have the following stored in a database field:

    Function AdjustStringValue(ByVal str As String) As String
        str &= "AAA"
        str &= "BBB"
        Return str
    End Function

Can I somehow call this function from a program passing it the parameter?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chlade
chlade

ASKER

Wow, that is a lot to look at.  Let me look through it and see if it helps.
Avatar of chlade

ASKER

There was just too much there to sift through.  But I googled a few keywords I found and after a few hours of searching and playing found a good solution.  For others that run across this question, I found a more concise example here: http://msdn2.microsoft.com/en-us/library/microsoft.visualbasic.vbcodeprovider.aspx.