473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

i cant convert from type long to string?

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
1 1648
Rabbit
12,516 Expert Mod 8TB
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

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

Similar topics

7
by: Galina | last post by:
Hello I am going to copy a data from MS Access table into Oracle table. One of fields is memo type and data in this field range from 1 character to 551 long string. Do I need to create a field...
22
by: Christoph Boget | last post by:
I am getting an error (a few among many) for the following lines of code: retval.BrokerName = (( curRow == System.DBNull.Value ) ? SqlString.Null : (string)curRow ); retval.BrokerGroupId = ((...
14
by: Chris | last post by:
Hi, I try to print out truth-tables for an &&-operation using the following code, unfortunatly I get compiler errors : for ( byte i1=0; i1<=1; i1++) { for ( byte i2=0; i2<=1; i2++) { bool...
9
by: Andy Sutorius | last post by:
Hi, I am receiving the error when compiling the project, "cannot implicitly convert type object to string". The error points to this line of code and underlines the dtrRecipient:...
3
by: Imran Aziz | last post by:
Hello All, I am getting the following error on our production server, and I dont get the same error on the development box. Unable to cast object of type 'System.Byte' to type 'System.String'. ...
6
by: Tim Cartwright | last post by:
I have a page that has the login control on it, nothing else. This page inherits from a master page, neither page has any code in it. This page works perfectly when running on the WebDev debug web...
3
by: bussiere maillist | last post by:
i've got a very long string and i wanted to convert it in binary like string = """Monty Python, or The Pythons, is the collective name of the creators of Monty Python's Flying Circus, a British...
7
by: dan w01 | last post by:
Hi, I'm reading in a string of about 420 characters, the string is in binary. How do I either: - convert a string of this length into an integer variable without getting a runtime error 6...
2
by: ransaj | last post by:
objCompanyRequirement.Salary = Convert.ToInt32 (txtCRF_Salary.Text); cannot implicitly convert type 'int' to 'string' objCompanyRequirement.InterviewDate = ...
1
by: Dan Lyles | last post by:
After a message is entered by the user, I must either encode it or decode it. In order to do so, I am supposed to input two strings to represent my table, but am unsure how to convert them to an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.