Re: [Gambas-user] displaying mysql query result into gridview

2011-03-11 Thread Michael
Nugroho, Sorry, I just cut and pasted some existing code. You can delete the reference to LoadChargeCombos. This is a local routine to populate some combo boxes. The rest of your code should work fine. Best Wishes Michael On 12/03/11 13:35, Nugroho Al Gopar wrote: > Hi Michael > > I've try to

Re: [Gambas-user] displaying mysql query result into gridview

2011-03-11 Thread Nugroho Al Gopar
Hi Michael I've try to use your script replied to me in my program. But I need few explanations. 1. Where should I put the code? It is something like bellow? ' Gambas class file PRIVATE SUB PopulateCharges() DIM rsCharges AS Result DIM intRow AS Integer = 0 DIM strT

Re: [Gambas-user] displaying mysql query result into gridview

2011-03-09 Thread Michael
NUgroho, Here is code from one of my projects: Private Sub PopulateCharges() Dim intRow As Integer = 0 Dim strType As String = "" If rsCharges.Available Then rsCharges.MoveFirst grdCharge.Rows.Count = rsCharges.Count For

[Gambas-user] displaying mysql query result into gridview

2011-03-09 Thread Nugroho Al Gopar
I have learn how to connect mysql through gambas and make simple query like select * from table. My problem is, i can not display the results inti gridview or table view. I've try many codes style, include the code written in ebook titled "gambas-beginner-guide", but none is works. I put the code