Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Listview's item object...

Posted on 2000-03-18
7
Medium Priority
?
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 14

Expert Comment

by:mcrider
ID: 2631742
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
ID: 2631841
bhavesh55's grade ratio:  14 / 28
0
 
LVL 54

Expert Comment

by:nico5038
ID: 2632011
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
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.

 

Expert Comment

by:hess
ID: 2632231
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 20 total points
ID: 2632662
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
ID: 2636273
Ruchi
Thanks a lot.

May i have your personal e-mail address.

Thanks,
bhavesh
0
 
LVL 9

Expert Comment

by:Ruchi
ID: 2637631
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

610 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