FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Inserting a row into a table
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Inserting a row into a table
Posted: Sun Jun 01, 2025 07:01 AM
From FW, you need to insert rows into the table (in this case, I do it through the IE)
oTmp:=oTb:rows[oTb:rows:length-2]:cloneNode(.T.) //copying the penultimate row of the table as a template
for st=1 to 10
     oTb:insertRow(oTb:rows:length-1) //insert an empty line before the last one
     oTb:Rows[oTb:rows:length-2]:replaceWith(oTmp:cloneNode(.T.)) //replacing this line with a template one
next
When executing the command oTb:Rows[oTb:rows:length-2]:replaceWith(oTmp:cloneNode(.T.)) I get the error:
Error description: Error 53945232:DOCUMENT:GETELEMENTBYID:ROWS:ITEM/0  S_OK: REPLACEWITH
   Args:
     [   1] = O   53945232:DOCUMENT:GETELEMENTBYID:ROWS:ITEM:CLONENODE
What am I doing wrong?

Continue the discussion