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!

Looping Thru Items In a Block

Status
Not open for further replies.

BigM

Programmer
Aug 30, 2000
39
GB
Hi,

I am wanting to process all items within a block and set the visual attribute according to a value retrieved from the database. This to be done on when-new-block-instance.

Code is as below but using next_item triggers of validation etc.....is there any other way of looping through items in a block?

WHILE vCurrItem != vLastItem
LOOP
SET_ITEM_PROPERTY :)SYSTEM.current_item, VISUAL_ATTRIBUTE, 'RED');
NEXT_ITEM;
END LOOP;

TIA

BigM
 
Use get_block_property(<block>, FIRST_ITEM) to get the first item of the block and get_item_property(<item>, NEXTITEM) for looping
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top