[Gambas-user] Get data from a column (not the head) of the control WebTable

Fabien Bodard gambas.fr at ...626...
Fri Jan 13 12:46:23 CET 2017


There is a major difference between columnview and webtable one store
data's the other not

So to get the data of the line 3

Myarray[webtable.row]
Le 13 janv. 2017 11:59, "Casper" <casper.labuschagne at ...626...> a écrit :

> Hi,
>
> On 12/01/2017, מיוסט שרון <sharon at ...3639...> wrote:
>
> > But my question
> > When the table has 3 rows and each row has two columns
> >
> > I want to get to the "Text" there is a row 3 column 2
> >
> > I do not see such a possibility
>
> I struggled with something similar recently.  I think I know what you
> mean and if I'm right you may have to adapt this code to fit your
> needs.  This might, or might not, be what you are looking for.
>
> Dim iMaxRows As Integer
>
>   iMaxRows = ColumnView1.Count
>
>   ' populate variables from columnview
>   ColumnView1.MoveFirst
>   For iCount = 0 To iMaxRows - 1
>     myVarA = ColumnView1.Item[1]
>     myVarB = ColumnView1.Item[2]
>     ' do whatever else
>   next
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> 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