Re: [Gambas-user] Populate grid with generic query

2014-02-20 Thread Daniel Quintero
Ok, thanks :) *_* *Lic. Daniel Quintero Rojas* *¡Saludos desde México!* On Thu, Feb 20, 2014 at 3:55 PM, Fabien Bodard wrote: > 2014-02-20 22:47 GMT+01:00 Daniel Quintero : > > Hi Fabien, thanks for answering :D > > > > I understood almost all code, except t

Re: [Gambas-user] Populate grid with generic query

2014-02-20 Thread Fabien Bodard
2014-02-20 22:47 GMT+01:00 Daniel Quintero : > Hi Fabien, thanks for answering :D > > I understood almost all code, except these two parts: > > Public Sub ResultChange() > > Dim hField As ResultField > * hResult = db.Find("tt")* > > *"tt"* is my query? no it's my table but you can use db.ex

Re: [Gambas-user] Populate grid with generic query

2014-02-20 Thread Daniel Quintero
Hi Fabien, thanks for answering :D I understood almost all code, except these two parts: Public Sub ResultChange() Dim hField As ResultField * hResult = db.Find("tt")* *"tt"* is my query? And this: Public Sub GridView1_Data(Row As Integer, Column As Integer) 'for fun If Column = 0

Re: [Gambas-user] Populate grid with generic query

2014-02-20 Thread Fabien Bodard
You must to store the query result as private on the form then ' Gambas class file Private hResult As Result Public Sub _new() Connections["Connection1"].Open ResultChange End Public Sub ResultChange() Dim hField As ResultField hResult = db.Find("tt") For Each hField In hResult.

[Gambas-user] Populate grid with generic query

2014-02-20 Thread Daniel Quintero
Hi all I've a beginer question: I have a simple query: select [list of fields] from [table] where [conditions] How can I populate a grid? My problem is that [list of fields], [table] and [conditions] can change depending on the values of various ComboBoxes Thanks in advance :) *