[Overview][Types][Classes][Procedures and functions] | Reference for unit 'pLua' (#pLua)

# plua_pushvariant

## Declaration

Source position: plua.pas line 34

`procedure plua_pushvariant(`
`L: Plua_State;`
`v: Variant`
`);`

## Arguments

`L` |  | PLua_State to work with.
`v` |  | Variant to put on the stack.

## Description

Used to push a variant value onto the Lua stack. This is especially useful if you are working with unknown value types, or don't want to worry about the variable type you are working with. Will also take a Variant Array and create a table from the array, then place the table onto the stack.

## See also

plua_ToVariant |  |
plua_TableToVariantArray |  |