PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → TableSelect(MyTable,taEnd)
TableSelect(MyTable,taEnd)
Iniciado por guest, 23,jul. 2015 14:28 - 6 respuestas
Publicado el 23,julio 2015 - 14:28
Hello,

I want to acces the last line of a memory table without reading the whole table.

Something like

TableSelect(MyTable,taEnd)
nNewRowID = Col_RowID +1

But TableSelect does not works with taEnd.

I can solve it with

for each row of MyTable ...

But that is not an elegant solution.

Thanks,

Willy Hermans
Publicado el 23,julio 2015 - 14:48
Hello,

You could use something like that :

MyTable[Mytable..Occurrence].COL_RowID

Regards,
Bart
Publicado el 23,julio 2015 - 14:49
Hi Bart

try tableselect(TableName, TableCount(tablename))

Best regards
Publicado el 23,julio 2015 - 15:12
MyTable[Mytable..Occurrence].COL_RowID

does the job

tablecount(MyTable) counts the number of lines but it does not give the content of the last line.

TableSelect does not select the line that was ranked. Maybe it does not work on memory tables.

Thanks,

Willy Hermans
Publicado el 23,julio 2015 - 15:16
if you need to select one line use tabeselectplus instead of tableselect
Publicado el 24,julio 2015 - 10:58
Hello,

Indeed this works also.

Thanks,

Willy.
Publicado el 27,julio 2015 - 09:38
Just as an addition, this also works:

SendKey("^{END}" ,TABLE_YourTable )


HTH
Sebastian