Solved

VB 2005 ListView

Posted on 2007-11-14
1
274 Views
Last Modified: 2013-11-26
Hi

I am getting an error on the following line. I have detailed the error after it
 oAction = frmR.lsbActionR.Items(j).SubItems(1).Text()



Error      48      Overload resolution failed because no accessible 'Item' can be called without a narrowing conversion:
    'Public Overridable ReadOnly Default Property Item(key As String) As System.Windows.Forms.ListViewItem': Argument matching parameter 'key' narrows from 'Long' to 'String'.
    'Public Overridable Default Property Item(index As Integer) As System.Windows.Forms.ListViewItem': Argument matching parameter 'index' narrows from 'Long' to 'Integer'.      C:\Documents and Settings\Murray.MURBRO\My Documents\Visual Studio 2005\Projects\AutoXL\AutoXL\modRun2.vb      53      23      AutoXL
0
Comment
Question by:murbro
1 Comment
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 20279144
I take it the variable 'j' is declared as Long? Change it to Integer type.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

22 Experts available now in Live!

Get 1:1 Help Now