Past (20 years or so) and present code. A variety of languages and platforms. Some gems. More gravel. Some useful stuff and some examples of how not to do it.
Showing posts with label state tables. Show all posts
Showing posts with label state tables. Show all posts
Thursday, August 18, 2005
How I used the CalculateState function
It's awful, and I'm glad I don't have to follow this any further. By the way, if you see any routines you would like to see elucidated, please let me know.
Labels:
ADO,
state tables,
VBScript
Toward a state table generator (VBScript)
This bit of code I used to create a two-state table for 5 variables. It would have been fairly easy to add more states -- by changing the if to a select case in 'state' and giving the for loops more things to loop through -- and to add more variables -- by specifying another loop and and another call to 'state'.
I won't be writing the generator ... the whole need for state tables disappeared in a meeting earlier today.
I won't be writing the generator ... the whole need for state tables disappeared in a meeting earlier today.
Labels:
state tables,
VBScript
Wednesday, August 17, 2005
Found another use for Eval() in VBScript - state tables
Imagine trying to keep track of all possible combinations of four variables. Big if/then/else/end if, right? Not necessarily.
Labels:
Eval,
state tables,
VBScript
Subscribe to:
Posts (Atom)