LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DB tools move to record N rows disappear

Hi All,

I really don't understand what's happening... I created a vi that queries the rows in a table (the result is a recordset), and the number of the rows (the result is an integer). than, here comes a for-loop, where N is equal to the previous integer. In this loop, I use DB tools move to record N to retreive the data of each row. In the first round (i=0), I get the results for each column right, I save this row into an another database, than I delete it from here, from this table. Than, i=1 is the next one, but here the vi, move to record N (=1) pops up an error, that we reached BOF or EOF, which means that we have no more rows. It seems if the row was erased from the recordset, too. However, the resultset shoud be untouched, at least the query is out of the loop, of course.

could somebody help me in this topic?

I use Labview 8.2 and DB connectivity toolset
0 Kudos
Message 1 of 2
(2,550 Views)
Hi all, I think I solved it, but still curious why it didn't work in the first version. Now at the Move to record N vi I wired a constant 0, so it takes every time the first row in the resultset, which is always the next one after deleting... crazy, isn't it?
0 Kudos
Message 2 of 2
(2,544 Views)