R
robertmccall
Greetings all,
I've been working and reworking some legacy vb.net 1.1 code for a
couple of months now and have just encountered an un-googleable error:
Expression is not an array or a method, and cannot have an argument
list.
This is happening for the Mid fct call in the following block of code:
dim tStr,uStr as string
tStr = "abc def ghi"
uStr = Mid( tStr, 1, 1 )
Now, this code is contained within a case block of a select case
statement.
The imports for the file are:
imports System
imports System.Data
imports System.Data.SqlClient
imports System.Text
imports Microsoft.Office.Interop
The file is parsing an Excel spreadsheet.
Other files in my project use the Mid fct without issue, and if I
prefix Mid with "Microsoft.VisualBasic.", everything is ok.
Anyone have any clues? I'm thoroughly stumped.
Thanks in advance,
Robert McCall
I've been working and reworking some legacy vb.net 1.1 code for a
couple of months now and have just encountered an un-googleable error:
Expression is not an array or a method, and cannot have an argument
list.
This is happening for the Mid fct call in the following block of code:
dim tStr,uStr as string
tStr = "abc def ghi"
uStr = Mid( tStr, 1, 1 )
Now, this code is contained within a case block of a select case
statement.
The imports for the file are:
imports System
imports System.Data
imports System.Data.SqlClient
imports System.Text
imports Microsoft.Office.Interop
The file is parsing an Excel spreadsheet.
Other files in my project use the Mid fct without issue, and if I
prefix Mid with "Microsoft.VisualBasic.", everything is ok.
Anyone have any clues? I'm thoroughly stumped.
Thanks in advance,
Robert McCall