Results 1 to 3 of 3

Thread: Nested tables

  1. #1

    Default Nested tables

    Hi,

    I have a problem and most likely it is because i do not use tables/nested tables correctly.

    The following code works just fine,
    Code:
    _, _, NumberZones = string.find(varJRMC_Zones,"\"NumberZones\">(%d)")
    but when I use the following,
    Code:
    _, _, JRMC.NumberZones = string.find(JRMC.varJRMC_Zones,"\"NumberZones\">(%d)")
    I get an error stating the following,
    Code:
    17:00:27, Source=Script Action - PCall, Message=JRMC_TEST / [string "JRMC_TEST"]:12: attempt to index field 'varJRMC_Zones' (a nil value)
    stack traceback:
    	[string "JRMC_TEST"]:12: in main chunk, Node=( {4e604e6a-9ae9-4e88-88e3-fc7baf93c4a3}, 9)
    Any idea what I am doing wrong????

    Thanks and have a nice weekend

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    do a table.print(JRMC) to see what is actually in JRMC.
    Ron
    No support through PM

  3. #3

    Default

    Thanks for pointing me in another direction.
    The JRMC table was empty at that point in the script.............
    The actual problem was they way I was using network.get where the data came from.

    Have a nice day

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •