Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I navigate to the next record in a tabular data block?

Status
Not open for further replies.

patrickdrd

Programmer
Nov 21, 2003
149
GR
Hi guys! I have a data block, which I want to fill manually, but I do not know how to get to the next record. Only the first line is filled (from the database). I want to fill it with a for cursor, which retrieves the data I want that data block to have.
 
Down; or next_record;

Why would you want to fill a data block manually?
 
Thanks for your answers guys! I found the solution, neither down; or next_record was working because I was in a for cursor loop. I canceled the cursor and moved the item to be filled in the 'bound' data block (moved it from control_block there) and ... all of a sudden ... it worked!
 
Can you explian why next_record didn't work within cursor loop? Did you try it or this was just an assumption? I see no reasons for not working. Of course the cursor must be on that block (issue GO_BLOCK before processing).

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top