R RichardN Well-Known Member Licensed User Longtime User Dec 16, 2018 #1 A single Activity loads a layout containing an xCustomListView (CLV1) that has the Visible property set to false so that it can be revealed later. In the Sub Globals CLV1 is declared in the same manner as all the examples I have seen: Code: Private CLV1 As CustomListView However, when I come to read or set the .Visible property the IDE will offer the command CLV1.AsView.Visible = True but it will not compile due to a type mismatch error. How do I correctly read or set the .Visible property of a CustomListView in code?
A single Activity loads a layout containing an xCustomListView (CLV1) that has the Visible property set to false so that it can be revealed later. In the Sub Globals CLV1 is declared in the same manner as all the examples I have seen: Code: Private CLV1 As CustomListView However, when I come to read or set the .Visible property the IDE will offer the command CLV1.AsView.Visible = True but it will not compile due to a type mismatch error. How do I correctly read or set the .Visible property of a CustomListView in code?
Erel B4X founder Staff member Licensed User Longtime User Dec 16, 2018 #2 Make sure to reference xCustomListView library and to not have any CustomListView code module. Upvote 0
R RichardN Well-Known Member Licensed User Longtime User Dec 17, 2018 #3 A lesson was learnt here. Don't be in a hurry to upgrade native views in applications immediately a new and better method comes out. I will be writing future applications using cross-platform methods (where I need to) but upgrading old applications every time something better comes out is a path with many traps. Upvote 0
A lesson was learnt here. Don't be in a hurry to upgrade native views in applications immediately a new and better method comes out. I will be writing future applications using cross-platform methods (where I need to) but upgrading old applications every time something better comes out is a path with many traps.