• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2064
  • Last Modified:

ShowMessage(listview1.itemappearance.Header.text, Item.text)

Hi I need to drill into the ItemAppearance of the tlistview and ,
Showmessage of Footer, Header, Item.
0
Grant1842
Asked:
Grant1842
  • 5
  • 2
2 Solutions
 
BenefordCommented:
I don't have XE4, so can't actually try anything out.
What error are you getting?
XE2's ShowMessage takes one parameter only, but your title implies two.
If you want to show a single string with three strings in it, you could use:
ShowMessage(format('%s:%s:%s',listview1.itemappearance.header.text,listview1.itemappearance.footer.text,item.text]));

Open in new window


Or post some code (and a description of what you expect to see)..
0
 
Grant1842Author Commented:
I am doing an IOS app so the FMX.listview i a m using has more propertys than  one for windows.

as posted I need to show message for FMX.listview> ItemAppearance > 
Footer(Text, Detail)<show message of the Text and Detail
Header(Text, Detail)<show message show message of the Text and Detail
 Item(Text, Detail)<show message show message of the Text and Detail

Whish I could edit the title of the question. I just look at the listview for windows and it does not have the extra sup property as when you use it for firemonkey ios app,
0
 
Grant1842Author Commented:
Anyone have any thoughts on how to do this ?
THanks
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Grant1842Author Commented:
LVThe 1,2,3 are the Headers (Item.Text).

How can I do a simple show message to show these values.
0
 
Grant1842Author Commented:
I have learned some new info.

showmessage( lvCustomers.Items.Item[0].Detail)
This will return the 1 in the first Header.

I need to do someting like
showmessage( lvCustomers.Items.Item[lvCustomers.Selected].Detail)

I need to get the Detail of the record I click on in the FMX.Listview.

Anyone here done this before.
Thanks
0
 
BenefordCommented:
Try:
showmessage( lvCustomers.Items.Item[lvCustomers.ItemIndex].Detail)
0
 
Grant1842Author Commented:
Thanks Guys
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now