Design a tempTable in class to hold a "matrix" of values

In another post I got to, by the great help of Martin, a solution with a TempTable to hold values.

In post you can see the discussion

So I want to create a class of a TempTable and then GetSettermethods to get and set the values in the table.

If I'm not wrong I can do that by (assume I created a class of type TempTable named "Commodity" 

public real parmOpen(int _id, real _open = 0)

//update value

if(_open != 0)


select forupdate Commodity where == _id; = _open;



return commodity::find(_id).open;


Wrote it form the top of my head, but its about the concept.

What do you think?

Parents Reply Children