|
|
||||||||||||||||||||||||||
|
A developer recently asked on the Works forum if it was possible to use the table browser from within a program. Well the simple answer is "Yes". The slightly more complex answer is that since so many of the OI tools are now written in OI itself it is frequently possible to use these tools from within programs.
The first thing we need to know is what the table browser window is called. It may come as a surprise to those more familiar with obscure naming conventions to find out that it is called "TABLE_BROWSER". So to call it programmatically we'd simply
atWindow = Start_Window("TABLE_BROWSER", @Window)
Of course launching it might not be enough - we might also want to populate it with the contents of a table. To do this we need to know the control names. To save you the investigative work we've included a table below :-
So to launch the browser and load the AVERY_LABELS table we could
Declare Function set_Property, start_Window
atWindow = Start_Window("TABLE_BROWSER", @Window) objxArray = atWindow : ".TABLENAME" propArray = "DEFPROP" dataArray = "AVERY_LABELS" dataArray = set_Property( objxArray, propArray, dataArray ) Call send_Event(atWindow : ".BTN_LOAD", "CLICK")
Previous Posts
Archives
BlogRoll
Subscribe
Subscribe via RSS
(For those who still appreciate civilised technology.)
Add to your reader
Scan to subscribe
Subscribe to
|
||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home