next up previous contents
Next: 3.4.8 Error Handling Up: 3.4 Type Conversion Previous: 3.4.6 DATE type   Contents

3.4.7 Variants

When converting from COM to Lua, the default behavior is to transform variant values to the closest Lua type. The script can change the conversion from Lua types to a table describing the variant, by setting the TableVariants field of the luacom table(the LuaCOM namespace) to true. The tables will have a Type field telling the original type of the variant, and a Value field containing the conversion to the closest Lua type. Be careful with this feature, as it may break compatibility with other scripts.

Fabio Mascarenhas de Queiroz 2005-06-06