[Gambas-user] structure and class

Jussi Lahtinen jussi.lahtinen at gmail.com
Tue Aug 8 20:59:34 CEST 2023


>
> I have some query to a database , database is m$ sql server , I use odbc
> to connect and it works... BUT i cannot enumerate the results as there
> some bug in the odbc driver ( witch I can't change ).
>
> Now , I've made a class that is like:
>
> Public column1 as integer
> Public column2 as string
> Public column3 as Float
> Public column4 as blablabla
>
> I then made an array of that class and push my query result data to that
> array.
>
> It work but it need a lot of code so I would like to dynamic declare the
> class looking columns in results so I can
> made a reusable function with different query.
>

Perhaps you could put all of the result in a string and parse what is
needed on fly.


Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230808/3b79493d/attachment.htm>


More information about the User mailing list