related locally defined controls in a scrolllist

Mwinsor

Member
Licensed User
Longtime User
I have a scroll list that contains three objects, an edittext called Qty, and two labels for price and extended price defined locally within a subroutine. On the textchanged event of the Qty field I need to update the extended price label. I know of the "sender" variable which gets me a reference to the qty object in the textchanged event but how do I update the proper extended price label? Each row is defined in a panel of the scrolling list.

Here is what the screen looks like to provide a point of reference:

Qty SRP Total
2 $9.50 $19.00

3 $1.50 $4.50

1 $7.95 $7.95
 

klaus

Expert
Licensed User
Longtime User
If I understand correctly, you have a Scrollview with a certain number of Panels and each Panel contains one EditText view and two Labels.
How did you set the Tag properties of the different views ?
If you have set the EditText Tag property to the line Index, then you can get the Panel view of this line with pnl = ScrollView1.Panel.GetView(Index).
Then you can get the Total Label with lblTotal = pnl.GetView(2).
It would be easier if you posted your project as a zip file, so we could see what you have done and how and update it.

Best regards.
 
Upvote 0
Top