[Gambas-user] Show records on a WebTable

Benoît Minisini gambas at ...1...
Sat Mar 18 00:25:59 CET 2017


Le 17/03/2017 à 20:18, Tobias Boege a écrit :
> I didn't test it, but the following is approximately how it goes:
>
>   Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData)
>     Dim i As Integer
>     Dim f As ResultField
>
>     cx = M_DB.Connect()
>     rs = cx.Exec("SELECT * FROM tbcategory")
>
>     ' Go to the Row-th record in your result
>     For i = 0 To Row - 1
>       rs.MoveNext
>     Next

--> Please use rs.MoveTo(I) instead. :-)

-- 
Benoît Minisini




More information about the User mailing list