Search results for query: *

  1. R

    Question Serial Port Problem: The given port name is invalid...

    The underlying issue is that I cannot open the serial port.
  2. R

    Question Serial Port Problem: The given port name is invalid...

    Thanks. I am importing system.io.ports; otherwise the program would not compile. The above error occurs at run-time when the port is opened.
  3. R

    Question Serial Port Problem: The given port name is invalid...

    I'm OK with writing the program thanks. The help I need is in relation to why the port will not open.
  4. R

    Question Serial Port Problem: The given port name is invalid...

    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"...
  5. R

    Question conversion help needed

    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 '...
  6. R

    BLUE SCREEN OF DEATH occurs when running PING in Parallel.For

    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...
  7. R

    Pulling date from AS400 screens

    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...
  8. R

    Question Resolving assemblies at runtime

    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...
  9. R

    Question Spliting records into variable formats

    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...
  10. R

    Question Spliting records into variable formats

    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 =...
  11. R

    Question Spliting records into variable formats

    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...
  12. R

    Question Spliting records into variable formats

    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...
  13. R

    Question Spliting records into variable formats

    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...
  14. R

    Question MSSQL datetime difference by 1ms when inserted.

    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...
  15. R

    Question MSSQL datetime difference by 1ms when inserted.

    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...
  16. R

    Question MSSQL datetime difference by 1ms when inserted.

    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') - -...
  17. R

    Question Missing parameters exception

    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...
  18. R

    Question RAW disk I/O.

    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,
  19. R

    Question RAW disk I/O.

    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...
Back
Top