Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 19.0.1 ]
Hello someone could help me with the meaning of this command:I have the code below, do you know how work the command "param" and "+numtostring"? I mean when I use the command query what happen in a practical way?
i have the table Componentes that is structured in this way:
| codProducto | codComponente | Boxes |
| 1 | 2 | 1 |
| 1 | 3 | 2 |
| 1 | 4 | 3 |
| 1 | 5 | 4 |
| 2 | 3 | 1 |
| 2 | 4 | 2 |
| 2 | 5 | 3 |
| 3 | 7 | 1 |
| 3 | 8 | 2 |
int codP1 = param(1);
int codP2 = param(2);
tActual = Table.query("SELECT * FROM Componentes \
WHERE codProducto = " + numtostring(codP1, 0, 0) + " ORDER BY Box ASC");int filasAct=tActual.numRows;
tAnterior = Table.query("SELECT * FROM Componentes \
WHERE codProducto = " + numtostring(codP2, 0, 0) + " ORDER BY Box ASC");
int filasAnt=tAnterior.numRows;
Solved! Go to Solution.