Page 1 of 1

Chage DCBROWSE visible data

Posted: Fri Aug 29, 2014 11:56 am
by jdsoft
Hello
If have a DCBROWSE of an array. The browse itself has 13 visible lines
This array can contain 1 to 999 sub arrays.

After every rebuild of that array, and refreshAll of DCBROWSE, the first item is visible on the first browse line.

Assume the array has 215 items.
How can I refresh the DCBROWSE and instruct to start with item 165 of the array (fist line in the browse), and set the selected row on line 7?

Suggestions are welcome.

Regards,
Jack Duijf

Re: Chage DCBROWSE visible data

Posted: Fri Sep 05, 2014 7:17 am
by rdonnay
Try this:

Code: Select all

oBrowse:arrayElement := 165
oBrowse:refreshAll()
For i := 1 TO 6
  oBrowse:down()
Next
oBrowse:forceStable()

Re: Chage DCBROWSE visible data

Posted: Mon Sep 08, 2014 12:09 pm
by jdsoft
Hello Roger,

Thanks,
That is much more simple then I expected.

Jack