
Table driven "If then" statements
You can't change a compiled statement at runtime in any language, but
there's often a workaround.
VB can use the Script control, which lets your VB program run scripts,
which are interpreted at runtime.
There's no reason why lines of code in a database counldn't be read by your
VB program and executed as script.
Quote:
> I would like to have some table driven logic in my application. Is
> this possible? How in VB do you change an if then statment at
> runtime? In pascal I think you could change the way an operator
> functioned, so that I could change a < to function like a > This
> application is more like an engine, that the users need to be capable
> of controlling. Please let me know if you've ever heard of anything
> like this.
> example:
> Logic Table
> x < y print x
> x = y print y
> The code would have to support both if then statments. Getting the
> variable values is no problem but I don't know how to set the
> statements test and the result.
> Thanks
> Robert
> Sent via Deja.com http://www.deja.com/
> Before you buy.