Hi.
I am having problems communicating with a UBLOX GPS device using the serial interface over USB. I would like to be able to receive data from the device asynchronously in a receive event when data is sent from the GPS to the computer.
mySerialPort.PortName = "COM7"...
If you specifically want your hex value in a string:
Dim ValueStr As String
Select Case TextBox1.Text.Trim
Case "0"
ValueStr = Chr(0) & Chr(0)
Case "1"
ValueStr = Chr(&HFF) & Chr(0)
Case Else
'...
Hi,
I would really appreciate some help please with the code below. I created a new project, added a button to a form and put the code below in the click event. When I run it and click the button, after a short while my computer crashes with the Blue Screen Of Death. I have no idea why this...
It sounds like you are trying to break the camel's back with the proverbial straw.
AS/400 systems are also known as iSeries, System i or IBM i, due to numerous re-branding.
IBM have their own tools (known amongst other things as Client Access) to connect to the AS/400, but there are other...
My objective is to ensure that during my application initialisation, the installed assembly versions are correct and compatible with my application references. I would like to do this check to make the application fail "gracefully" as opposed to generating an unhandled exception. I'm also...
You're right. But I don't see any advantage over just cutting the strings directly out of the data read and placing them in the appropriate variables. I was hoping there'd be something in VB.NET that would allow me to map a record read from a file directly into predetermined formatted buffers...
I guess reflection could be used, providing the data was stored in a class as opposed to a structure.
Dim x As Integer = 0
Dim NameData As New NameClass
Dim fldinfo As FieldInfo() = NameData.GetType.GetFields
For Each item As FieldInfo In fldinfo
item.SetValue(NameData, fields(x))
x =...
No. I'm not looking for a "one-liner".
I'm looking for ideas on an alternative way to populate values directly into a data structure (or class) that is maintainable (avoiding obfuscation), whilst still being elegant and efficient.
Yes, I WAS looking in the wrong place. Thank you very much...
Hi,
My objective is to make things easier to maintain and more elegant. Although I guess at a push it would be possible from what I've read about TextFieldParser, from my understanding of it's implementation, the required code would be unjustifiably complex for what I would like to achieve...
Hi
I am splitting data from an ASCII file generated by another system which has records of a varied format. The first 2 characters in each record are used to indicate the structure of the remaining data in the record. For example:
1 2 3 4 5...
The "Chief" has spoken.
Thank you. I asked nicely. I am polite. It's not a complicated question for a person that uses MSSQL all of the time. And until now, and have been patient. A community is all about sharing. If you have a community, which for all intents and purposes is a ghost...
I've found the answer myself...
The problem is down to a constraint of the datetime datatype in MSSQL. The datetime datatype date range is from January 1, 1753, to December 31, 9999, with an accuracy of three-hundredths of a second, or 3.33 milliseconds. I ended up using a string to...
I'm testing a vb.net application and have noticed that a datetime column I have inserted into the database differs by 1 millisecond...
CREATE TABLE [dbo].[dates](
[d] [datetime] NULL
) ON [PRIMARY]
- - - - - - - - - - - - - - - - - -
insert into dates (d) values('2009-02-06 17:27:47.312')
- -...
I have a web service that I'm testing at the moment which seems to be working fine as long as I pass the correct parameters to it. If I use a browser to go directly to the result of the web service: ie:
http://localhost:1468/Service1.asmx/IncreaseDate
...I get an exception...
No luck at all getting this operational in any capacity. Does anyone have a VB.NET sample of using these functions in conjunction with the RAW disk format?
Regards,
Hi,
I am attempting to write an application to accompany an electronics project I've been working on. I am capturing data from a device I have built and logging it to an SD card using a micro-controller. The device writes data to the SD card is in RAW format, which does not conform to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.