Re: Is is possible in forms6 ?

From: Matt B. <mcb_at_fightspam.sd.znet.com>
Date: 2000/05/25
Message-ID: <sirtq2huo134_at_corp.supernews.com>#1/1


"rds1" <rstolarek_at_jmk.lodz.pl> wrote in message news:v9wW4.19843$zA1.501603_at_news.tpnet.pl...
> I would like to loop through the records on first block and compare values
> of all fields in first block to corresponding values in the second block
> without doing
>
> GO_BLOCK('second_block')
> find the corresponding record to the record in first_block.
> Compare values of the fields in current record to the values in first block.
>
> Something like you access data in an array to compare values.
>
> block1.item1[1] - first record in block 1
> block1.item1[2] - second record in block 1
>
> block2.item1[1] - first record in block 2
> block2.item1[2] - first record in block 2

Depending on your situation, and this might work because it sounds like you have a 1:1 ratio of records between blocks (each block on the query-only one has one and only one corresponding record on the insert/update block), put an bunch of non-displayed items on one block and in the property palettes, synchronize their values with the items in the other block. That way you can compare them in one block w/o having to actually navigate to the second block. Then, use SET_ITEM_PROPERTY or SET_ITEM_INSTANCE_PROPERTY to set whatever stuff you need to dynamically.

-Matt Received on Thu May 25 2000 - 00:00:00 CEST

Original text of this message