PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → question on windev table
question on windev table
Iniciado por guest, 09,dic. 2015 12:58 - 3 respuestas
Publicado el 09,diciembre 2015 - 12:58
Hi ,

Maybea stupit question but Iam a bit stuck so I'll ask it any way

I want to select te last row of a table and place the cursor there.
any ideas?/


thanks
Publicado el 09,diciembre 2015 - 13:05
Hi Allard

tableselectplus(NameOfTable,tablecount(NameOfTable))

will select the last line

as for the cursor, a returntocapture(ColomnName) will do the trick

Best regards
Publicado el 09,diciembre 2015 - 15:38
Thanks,

Huh tried that but it was using the wrong name . Thanks to your answer I had a look at that . So thanks!!

regards

Allard
Miembro registrado
102 mensajes
Publicado el 11,diciembre 2015 - 11:41
Another possibility is to use SendKey() http://doc.windev.com/en-US/…

SendKey("^{END}" ,TABLE_yourtable )


will send CTRL-END to your table which will set the cursor to the last row.

--
http://arnoldconsult.de
WinDev 20 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL