Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a function based on value in database

Status
Not open for further replies.

benlinkknilneb

Programmer
May 16, 2002
590
0
0
US
Hi all,

I have a database with a table of rules. If the rule matches my current user input, then I want to fire the function specified by a field in the table, something like this:

(Table)
FieldName: "OneMachineOnly"
TriggerValue: "Yes"
WhatToDo: "CheckOneMachine"

(Code)
Private Function CheckOneMachine() as Boolean
...
End Function

I want to do this because the program will "learn" new tests... and I don't want to recompile the entire application every time, so it should be as simple as writing the new function and adding a row to the table. My thought was to have to new functions added into the project via .dll. Any suggestions on how I might go about accomplishing all this? If you can see a better way, I'd love to hear it...

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top