Announcement

Collapse
No announcement yet.

Can you get the name of a subtable as string?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can you get the name of a subtable as string?

    Hi. I have something like this:

    MyTable
    -->Modname1
    ------>File1
    ------>File2
    ------>File3
    ------>File4
    -->Modname2
    ------>File1
    ------>File5
    ------>File6
    -->Modname3
    ------>File1
    ------>File2
    ------>File7
    ------>File9

    After some loops and string.find I got a result and want to save which Subtable (modname1-3) the result was found in. But when I try to use the subtable AMS shows an error and tells me I need to enter a string (cause its a table). Is it possible to get the name of the table as string without having to add a new sub entry for Name=x ?
    Bl4ckSh33p-Soft - Custom Software and Indie Games

  • #2
    If you are trying to access the name of a variable, no - that won't work. You may need to add a key to store the name as a string, or rethink how you are storing the information.

    Ulrich

    Comment

    Working...
    X