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

plua_TableToVariantArray

Declaration

Source position: plua.pas line 36

function plua_TableToVariantArray(

  L: Plua_State;

  Index: Integer;

  Keys: TStrings = nil

):variant;

Arguments

L

  

PLua_State to work with.

Index

  

Stack index of the Lua table to work with.

Keys

  

Optional TStrings object to contain the key values of the table (as strings).

Description

Takes a table from the Lua environment and converts it to a Variant Array. If a TStrings object is supplied to the Keys arguement then will place the keys of the table into that list as well.

See also

plua_tovariant

  

plua_pushVariant