More than one listbox on one file in same window
You need to re-get the selected record from the file before calling the
update procedure.
The update procedure only updates the information that is currently in the
file record buffer.
Do the following to get the currently selected record from the list:
GET(Queue:Browse:X, CHOICE(?ListX))
now fill the record key fields with information and do a SET and a GET on
the file and then
call the update procedure.
HTH
Dave Morrison
Quote:
> I have problems with the following:
> I have a window with 7 listboxes on one file. Each listbox contains
Monday,
> tuesday etc.
> I use range limit field with single value on each listbox. This works
fine.
> Here is the problemo:
> Each listbox have update buttons that calls the same procedure -
> frmUpdateCalendar
> When i push the update button, i allways get the last record on the
listbox
> that was active before the chage button was pressed. When i push delete
> button or insert button it seems to work fine.
> I have tryed to use the BRWX.UpdateViewRecord on each change button with
no
> luck where X is the listbox number.
> Help please!