[Gambas-user] Fill list box with mysql query

M. Cs. mohareve at ...626...
Fri Jan 20 21:46:03 CET 2012


$Result=MyConnection.Exec("SELECT * FROM Mytable;")
FOR EACH $Result
MyListbox.Add($Result!fieldname)
NEXT

2012/1/20, Keith Clark <keithclark at ...2185...>:
> How would I go about filling a listbox with a result from a mysql
> query?  I know how to connect, write the query and get the result back
> in say $Result.
>
> The $Result would contain only one field with multiple rows.
>
> Thanks,
>
> Keith
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list