@br
GCC Consulting
gccconsulting at comcast.net
Fri Oct 3 09:09:00 PDT 2008
> -----Original Message-----
> From: filepro-list-bounces+gccconsulting=comcast.net at lists.celestial.com
>
[mailto:filepro-list-bounces+gccconsulting=comcast.net at lists.celestial.com]
On
> Behalf Of Jaime Perry
> Sent: Friday, October 03, 2008 11:36 AM
> To: filepro
> Subject: Re: @br
>
> Thanks for the reply. This sounds like I can't use it for what I want
> then. To be more specific, I have a header/detail situation where I am
> showing the detail file in a browse. I am trying to avoid putting a
> line number field in the detail file but I still want line numbers in
> the browse for point of reference vs the total detail lines (real field
> line numbers would need to be recalculated when ever a record is added
> or deleted).
>
> I tried simply using a straight counter but that didn't work as
> expected. It appears when using the retain position option in a
> browse, and you have more detail lines than the screen holds, it
> doesn't redraw the browse from the top of the index, but starts at where
> the line is which changes 1,2,3,4.... to 19, 2,3,4,15.... I guess
> will need to add line numbers a code to reclac them when adding/deleting
> lines.
>
> Thanks again.
> Jaime
>
>
> Nancy Palmquist wrote:
> > Jaime Perry wrote:
> >> This is a function I have not used much in the past and I am trying
> >> to determine how useful it may be. One thing I am wondering, is
> >> there a way to use @br to get the fields that happen to be on the
> >> line @br points to? For example, if @br is say 4 and the line looks
> >> like this:
> >>
> >> counter quantity item # description
> >>
> >> Is there a way to get what the quantity or item# is for line 4? I
> >> ask, because if test with the debugger, @br tells me "4" but
> >> lookupalias(xx) gives me info from another line entirely.
> >>
> >> Jaime
> >>
> > Jaime,
> > @br is for locating things on the screen. It can be used to make data
> > entry look like they are changing a line of the browse, or placing
> > data on the line. It can not be used to tell what data is on the line.
> >
> > But, if the user selects the line by pressing a HotKey on the line,
> > then you know what record of data they want to manipulate. The @br
> > tells you where that line was on the screen.
> >
> > Nancy
Not sure what you are actually trying to do, but instead of using a browse
to display the details, you could create an array and read in the field data
wanted and then put up a listbox. You could put in a "line number" which
would be the index # of the array.
Your user could then enter a line #, and you could then manipulate the data
any way you want.
If you do use this method, you might want to have a second array which holds
the record #'s of the records read. You can then use the record # lookup to
either get more information of for posting back to that record.
If you just want your user to be able to change a value in the detail file
from the browse, you can create a screen with the necessary field and use
@br to allow you to popup the screen over the field value to be changed.
Again, I would grab the record # of the detail to use in posting the new
value to that detail. Re-execute the browse and the new value will be
displayed.
Richard Kreiss
GCC Consulting
rkreiss at gccconsulting.net
More information about the Filepro-list
mailing list