ScrollView color change fault

angel

Member
Licensed User
Longtime User
I want to select a row of ScrollView change color, I looked at the SQL instance and gives me error.

thanks
 

klaus

Expert
Licensed User
Longtime User
Unfortunately it seems that you have picked up different code parts without knowing what these are doing.
In the ScroolView you add a layout for each item.
The Event names of the Labels are lbl1 and lbl2 but you don't have any lbl1 or lbl2 event routine.
You have Label1 in the layout but you aren't using it anywhere?
The SelectetRow routine expects a RowCol type variable but you have never defined it anywhere in the Tag properties.
In the Cell_Click routine you get a view as a Sender which is OK but then you try to get a Label as the Sender but the sender is never a Label because the Event names of the labels are different.
Unfortunately the code you try to implement doesn't correspond to your layout.
You must define more precisely what layout you want and how to use it.

The attached modified version works for selecting an item but I haven't tested everything else.

Best regards.
 

Attachments

  • prova1new.zip
    14.1 KB · Views: 198
Upvote 0
Top