lua-users home
lua-l archive

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


Dear Sandeep,

Reply of  lua-l Digest, Vol 18, Issue 40

To,
sandeep.ghai92@gmail.com


You can try this for tour problem:

data="">
{
{id="1" , x="0" , y="0" , constraint="free" , force="?"},
{id="2" , x="0" , y="120" , constraint="free" , force="sideway"},
{id="3" , x="120" , y="120" , constraint="free" , force="twist"},
{id="4" , x="120" , y="0", constraint="fixed" , force="?"}
}
header="------------------------------------------------"
print(header)
         for _, getval in ipairs(data)
do
      print (getval.id .."-----".. getval.x .."-----".. getval.y.."-----"..getval.constraint.."-----"..getval.force)
end
header="------------------------------------------------"
print(header)