By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

i cant convert from type long to string?

P: 1
Expand|Select|Wrap|Line Numbers
  1. sReader.Close()
  2.  
  3.         ReDim dblArrStation(intStationCounter - 1, 2)
  4.  
  5.         intNrStations = intStationCounter
  6.  
  7.         sReader = IO.File.OpenText(txtFilename.Text)
  8.         strRecord = sReader.ReadLine()
  9.  
  10.         For intStationCounter = 0 To intNrStations - 1
  11.             strRecord = sReader.ReadLine()
  12.             strArrColumns = strRecord.Split(chrArrDelim)
  13.  
  14.             lngMicroSensorReff = CLng(strArrColumns(2))
  15.             dblStationN = CLng(strArrColumns(3))
  16.             dblStationE = CLng(strArrColumns(4))
  17.  
  18.             dblArrStation(intStationCounter, 0) = CDbl(lngMicroSensorReff)
  19.             dblArrStation(intStationCounter, 1) = dblStationE
  20.             dblArrStation(intStationCounter, 2) = dblStationN
Oct 8 '12 #1
Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,382
I don't see where you're trying to convert a long to a string. And if you're getting error messages, then you need to post them.
Oct 8 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.