RE: [nlug] [OT] Visual Basic Question

2019-11-25 Thread Mark J. Bailey
for each other! :) From: nlug-talk@googlegroups.com On Behalf Of j...@jfeldredge.com Sent: Monday, November 25, 2019 1:20 PM To: nlug-talk@googlegroups.com Subject: RE: [nlug] [OT] Visual Basic Question OK, I found a work-around. I have to use an additional, undocumented step. Using fs

RE: [nlug] [OT] Visual Basic Question

2019-11-25 Thread john
OK, I found a work-around. I have to use an additional, undocumented step. Using fs As FileStream = New FileStream(thisFile, FileMode.Open) Using reader As StreamReader = New StreamReader(fs) fileText = reader.ReadLine() End Using End Using I found examples of code

Re: [nlug] [OT] Visual Basic Question

2019-11-25 Thread Tilghman Lesher
My guess would be that because you're not explicitly providing a class name for the function, the compiler is "guessing" the wrong class. So, instead, you might want to tell it explicitly which function you want, i.e. instead of: Using reader as StreamReader = new StreamReader(thisFile) try

Re: [nlug] [OT] Visual Basic Question

2019-11-25 Thread Clayton Davis
de string type, but I > haven’t found any documentation saying how to declare a managed-code string. > > > > *From:* nlug-talk@googlegroups.com *On > Behalf Of *Mark J. Bailey > *Sent:* Monday, November 25, 2019 11:57 AM > *To:* nlug-talk@googlegroups.com > *Subject:* RE: [n

RE: [nlug] [OT] Visual Basic Question

2019-11-25 Thread Mark J. Bailey
Of j...@jfeldredge.com Sent: Monday, November 25, 2019 12:02 PM To: nlug-talk@googlegroups.com Subject: RE: [nlug] [OT] Visual Basic Question Intellisense says to use a string argument. My guess is that I have run into a managed-code vs. unmanaged-code issue, and that a literal argument

RE: [nlug] [OT] Visual Basic Question

2019-11-25 Thread john
. From: nlug-talk@googlegroups.com On Behalf Of Mark J. Bailey Sent: Monday, November 25, 2019 11:57 AM To: nlug-talk@googlegroups.com Subject: RE: [nlug] [OT] Visual Basic Question You probably need to create a new STREAM object first (using the STRING pathname). I’m not VB oriented

RE: [nlug] [OT] Visual Basic Question

2019-11-25 Thread Mark J. Bailey
You probably need to create a new STREAM object first (using the STRING pathname). I’m not VB oriented, but that would be my initial guess. What does Intellisense say about the StreamReader’s argument types? From: nlug-talk@googlegroups.com On Behalf Of j...@jfeldredge.com Sent: Monday,