I just started using J and GTK, so apologies if this is too vague:

I am writing a script that will take input data from a GTK frontend, use it
to do a query into a jdb database, and output the data in a new gtkgrid
contained in a new window. I would like the user to be able to make
(hypothetically) an infinite number of queries and keep all windows open.

Currently, I have written it with a variable that I can use in my grid
locale and increment after each query. For example:

".('mygrid',(":currgrid),' =:conew ''jgtkgrid''')
NB. currgrid is an integer that is incremented after each query
".('create__mygrid',":currgrid)
".('handler__mygrid',(":currgrid),' =: 3 : handlerdef')

I seem to be having a lot of issues with this method, and it results in
messy code. Is there a better/correct method? I can clean up my code and
post more if anyone wants to see it.

Thanks,
Justin Tirrell
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to