Regular API function

simInsertDataIntoStackTable

Description Inserts data into a table on the stack. The function expects a value at the top of the stack, a key one position below, and a table below that. The value and its associated key will be inserted into the table and removed from the stack. If successive values are inserted with consecutive number keys starting at 1, then the table values can be accessed via number indices in a script, and the table can be seen as an array. Otherwise, the table can be seen as a map or associative array. See also the other stack functions.
C/C++
synopsis
simInt simInsertDataIntoStackTable(simInt stackHandle)
C/C++
parameters
stackHandle: a stack handle obtained with simCreateStack.
C/C++
return value
-1 in case of an error.
Lua
synopsis
Lua
parameters
Lua
return values
Python
synopsis