<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Sep 2019 12:00:51 Z</lastBuildDate><pubDate>30 Jul 2019 10:50:07 Z</pubDate><description>I am populating the Table control with records using TableAddLine. The records are read from an external file.&#13;
Algorithm is as shown below:&#13;
&#13;
BTN_getFileData&#13;
 - [code:wl]&#13;
fileID = fOpen(fileName)&#13;
Buffer = fReadLine(fileID)&#13;
LOOP -&gt; TableAddLine(TABLE_myTable, Buffer)&#13;
&#13;
IF NEW LINE ADDED THEN &#13;
     TablePosition(TABLE_myTable, gnCurrentLineNumber, taVisible) //*** WORKS FINE&#13;
&#13;
fTrackFile(fileName, checkNewRecordsInFile, ftModifyFile)&#13;
[/code]&#13;
&#13;
Procedure to update Table with new records: checkNewRecordsInFile&#13;
[code:wl]&#13;
fileID = fOpen(fileName)&#13;
Buffer = fReadLine(fileID)&#13;
LOOP -&gt; TableAddLine(TABLE_myTable, Buffer)&#13;
&#13;
IF NEW LINE ADDED THEN &#13;
     TablePosition(TABLE_myTable, gnCurrentLineNumber, taVisible) //*** SHOWS FATAL ERROR&#13;
[/code]&#13;
&#13;
The table needs to display the latest record added, by scrolling to the bottom of the Table, each time a record is updated.&#13;
This works fine within the BTN_name, but throws a fatal error when I try to update within proceddure&#13;
&#13;
--&#13;
&#13;
--&#13;
Pradeep</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control/read.awp</link><title>Display last row on Table Control</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Sebastian Arnold</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67243/read.awp</comments><pubDate>6 Sep 2019 12:00:51 Z</pubDate><description>Hi Pradeep,&#13;
&#13;
not shure if I understood the question, but maybe this helps:&#13;
&#13;
[code:wl]&#13;
SendKey("^{END}" ,TABLE_myTable )&#13;
[/…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67243/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67243/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control/read.awp">Display last row on Table Control</source><title>Re: Display last row on Table Control</title></item><item><author>PRADEEP / Satin</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67194/read.awp</comments><pubDate>15 Aug 2019 23:57:36 Z</pubDate><description>Thank You Manuel.&#13;
&#13;
If you see the question, TablePosition was setting to the last records of the table.&#13;
The problem was when …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67194/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67194/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control/read.awp">Display last row on Table Control</source><title>Re: Display last row on Table Control</title></item><item><author>MANUEL</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67181/read.awp</comments><pubDate>9 Aug 2019 19:48:47 Z</pubDate><description>gnCurrentLineNumber = TableAddLine(TABLE_myTable, Buffer)&#13;
TablePosition(TABLE_myTable, gnCurrentLineNumber)&#13;
&#13;
--&#13;
mjcc</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67181/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control-67181/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67161-display-last-row-table-control/read.awp">Display last row on Table Control</source><title>Re: Display last row on Table Control</title></item></channel></rss>
