Solved

Listview's item object...

Posted on 2000-03-18
7
147 Views
Last Modified: 2010-05-02
Which of the following statements would modify the text for the second subitem of a listview's item object ?

1)Item.ListSubItems(2) = "Clicked"
2)Item.ListSubItems(1) = "Clicked"
3)Item.Sub(1) = "Clicked"
4)Item.SubItems(2) = "Clicked"


Thanks,
bhavesh
0
Comment
Question by:bhavesh55
7 Comments
 
LVL 14

Expert Comment

by:mcrider
Comment Utility
Stop asking test questions!

To everyone else... This guy graded my last CORRECT answer as a "D"... Don't let him bring your grade average down...
0
 
LVL 14

Expert Comment

by:mcrider
Comment Utility
bhavesh55's grade ratio:  14 / 28
0
 
LVL 54

Expert Comment

by:nico5038
Comment Utility
Listitems are starting at 0 so probably answer 2 or 3 will be the correct one. However, why not start the VB debugger and try it yourself ?
It's faster and is more rewarding when you find something yourself!

BTW mcrider to speak with a well known author:
"What's in a grade?" (or was it name?)

I'm in for the fun and for sharing knowledge, not for the points !
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Expert Comment

by:hess
Comment Utility
Item.SubItems(2) = "Clicked"
it is that i think... but it might be
Item.SubItems(1) = "Clicked"
.... i'm not sure if the first item is zero
0
 
LVL 9

Accepted Solution

by:
Ruchi earned 5 total points
Comment Utility
The answer to your question is 4.

Hess: The first item for Subitem is 1.
For example,
Dim llist as ListItem
Set llist = lvwOrders.ListItems.Add(, , "Hess")
With llist
   .SubItems(1) = 1
   .SubItems(2) = 2
End With

There is a SubItem for each column in the LV, other than the first column.
0
 

Author Comment

by:bhavesh55
Comment Utility
Ruchi
Thanks a lot.

May i have your personal e-mail address.

Thanks,
bhavesh
0
 
LVL 9

Expert Comment

by:Ruchi
Comment Utility
Bhavesh: No problem. Post your e-mail address, and I will send you an e-mail. Accept my answer or reject it.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now