News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Exploring tables
Author Message
petermac
Junior Member
**


Posts: 1
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #1
RE: Exploring tables

[quote=mikshaw]
A little bit of code cleanup
Also, multiline strings now display on multiple lines in the browser. This is particularly visible with bind_lua_addtovtable()

Hi milkshaw

My first post!

Been hacking away at some fltk code and struggling to see the contents of tables my script was creating, ... so I hacked your EXCELLENT tablebrowser to be able to browse any table:

-- my changes:
-------------------
--changed:
--current_table=_G
--to:
current_table=tbl

--changed:
--mlexplore()
--to:
mlexplore(tbl)

--added at the end:
return mlexplore
----------------


From inside any script just do something like this:

tbrowse = require("tbrowse")
tbrowse(my_table)
... and voila! all is revealed

Perhaps someone else will find this useful, as I have!!! (wish I thought of it about 48 hours ago!!!)

Thanks for the great tool!!!



Attached File(s)
.lua File  tbrows.lua (Size: 3.68 KB / Downloads: 9)
08-05-2008 10:05 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Exploring tables - mikshaw - 09-07-2007, 06:53 AM
RE: Exploring tables - chrimo - 09-07-2007, 07:28 AM
RE: Exploring tables - mikshaw - 09-07-2007, 01:18 PM
RE: Exploring tables - mikshaw - 09-08-2007, 09:22 AM
RE: Exploring tables - mikshaw - 09-12-2007, 09:40 AM
RE: Exploring tables - mikshaw - 01-22-2008, 05:23 AM
RE: Exploring tables - mikshaw - 03-24-2008, 11:36 AM
RE: Exploring tables - mikshaw - 04-24-2008, 06:07 AM
RE: Exploring tables - petermac - 08-05-2008 10:05 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: