[Gambas-user] Concordance and reverse concordance for controls

Brian G brian at westwoodsvcs.com
Sun Jun 6 14:34:08 CEST 2021


Maybe you can post the code the builds the database, I am sure other would like to do the same thing.
--
Thanks
Brian G Sunday, 06 June 2021, 03:20AM -07:00 from Bruce  adamnt42 at gmail.com :

>On 5/6/21 12:40 pm, Brian G wrote:
> Might it be easier to add a module to your app that runs thru all the classes and controls and generates a report. When the app is started would much of that info be available thru classes and the control classes and hierarchy ? Which can all be accessed at runtime.
>
>Thanks Brian, that gave me a fresh viewpoint and a "restart".
>
>I realised "suddenly" that all this information is essentially 
>unchanging.  So, I decided not to persue it in a "live" fashion but from 
>a persisted reference list.
>So I created a new project that builds a concordance list and stores it 
>in a SQLite database. That takes care of the "forward" side of the 
>question, viz: given a control symbol, what other controls also expose 
>the same symbol.
>
>But even that is not a trivial exercise. Neither in the creation nor the 
>use of the concordance database. Building it takes about 3 hours! And 
>there are over 15,000 rows in the "symbol" table. I have created some of 
>the very basic queries and they run like a flash.  Did you know that 
>there are over 500 hidden methods in the Gambas GUI controls? And some 
>of them look quite interesting when I consider the "Why cant the xyzzy 
>control do a plugh?" questions that often occur to me.
>
>Anyway, having built the database I now find more things that I 
>need/would like to know. But they are for a different thread.
>
>b
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210606/95c4dae3/attachment.htm>


More information about the User mailing list