Visual Basic Listview errors in Acad 2015 (64 bit)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a huge prolem with a VBA program, and while I know lisp, I'm a novice with Visual Basic. The company I work for has a great inhouse program that was written in Visual Basic. We are now all running 2015 on 64 bit machines and I've been working on upconverting the program with the VBA enbabler. However, while everything else seems to be correct, I'm getting the error message, "Method or data member not found" for "Listview1".
After doing some research, it seems that this is a problem under 64 bit. Is there a way to make this work or else subsitute it for another routine? Here's a portion of the code:
'----------------------------------------------------------------------------
'--- populates listview with point data from drawing
'----------------------------------------------------------------------------
Dim pointblock As AcadBlockReference
Dim i As Integer
Dim itmX As ListItem
Dim itemis As String
Dim colx As ColumnHeader
'--- clear the listview table
frm_asurvey.ListView1.ListItems.Clear
frm_asurvey.ListView1.ColumnHeaders.Clear
'lwidth = frm_asurvey.lst_points.width - 5 * screen.twipsperpixelx
lwidth = 100
'Create and populate the listview
Set colx = frm_asurvey.ListView1.ColumnHeaders.Add(, , "Point #", 30)
Set colx = frm_asurvey.ListView1.ColumnHeaders.Add(, , "Northing", lwidth)
Set colx = frm_asurvey.ListView1.ColumnHeaders.Add(, , "Easting", lwidth)
Set colx = frm_asurvey.ListView1.ColumnHeaders.Add(, , "Elevation", 70)
Set colx = frm_asurvey.ListView1.ColumnHeaders.Add(, , "Description", 200)
Set colx = frm_asurvey.ListView1.ColumnHeaders.Add(, , "SORTON", 0)