Deleting table field rows
Posted: Wed Oct 15, 2008 2:29 pm
Hi guys'n'gals
I have a field of numbers (barcodes) that I loop through in order to populate a table-field with data from a database (i.e. read the barcode and add a row to the table field-showing the product description etc). I populate column one of each table row with an 'X'. If I click in the first column of a row, my code checks for the 'X', then deletes the line from the table and re-populates the table with the remaining rows (by looping the table-field rows to find the 'X's in the first column, building a temporary variable, then writing this back into the table-field). So as far as the user is concerned, the row has now been deleted.
HOWEVER, if I now add a new barcode into the barcode field and process it, the new table-field row this produces does not appear immediately after the 'new' last row but after what appears to be a 'blank' row .... as if the table-field KNOWS that there used to be a row there (like there is a behind-the-scenes row count?)!
I've read everything I can find on table fields and cRevTable but have failed to find a 'row count' setting or anything else that will solve my dilemma ...... please help me!!
Kind regards
Lawrence
I have a field of numbers (barcodes) that I loop through in order to populate a table-field with data from a database (i.e. read the barcode and add a row to the table field-showing the product description etc). I populate column one of each table row with an 'X'. If I click in the first column of a row, my code checks for the 'X', then deletes the line from the table and re-populates the table with the remaining rows (by looping the table-field rows to find the 'X's in the first column, building a temporary variable, then writing this back into the table-field). So as far as the user is concerned, the row has now been deleted.
HOWEVER, if I now add a new barcode into the barcode field and process it, the new table-field row this produces does not appear immediately after the 'new' last row but after what appears to be a 'blank' row .... as if the table-field KNOWS that there used to be a row there (like there is a behind-the-scenes row count?)!
I've read everything I can find on table fields and cRevTable but have failed to find a 'row count' setting or anything else that will solve my dilemma ...... please help me!!
Kind regards
Lawrence