lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Graham Henstridge wrote:
Hi

As a relative new comer to Lua, an unexpected difficulty I have encountered is in inserting a key and value into an existing dictionary.

The table.insert method does the trick for an indexed value but not for a string key. This need seems fundamental, so is there a simple solution that I have missed?

Thank you for any help.

Graham
Email: Graham@Capgo.com



dict["key"] = value

Is that what you need?

Brian