Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds.

  1. Re: extract data from serial port stream and save for further use?

    Using the code referenced earlier replace the corresponding sub with this and give it a try


    Private Sub Protocol()
    Const eol As Byte = 12 'CR
    Do
    If buf.Count >...
  2. Re: extract data from serial port stream and save for further use?

    So you are not showing the actual data stream? Do you have the documentation for the device sending the data? If you know the protocol of the device or have a link to it, please share it.

    Take a...
  3. Re: extract data from serial port stream and save for further use?

    Is the device sending strings with :'s embedded, or is what you are showing after it has been processed some?
  4. Thread: Geotargeting

    by dbasnett
    Replies
    3
    Views
    76

    Re: Geotargeting

    Would a database with IP's by country help?

    http://lmgtfy.com/?q=ip+by+country+database
  5. VS 2013 Re: Read lines from bottom to top / find last occurrence

    If you are processing a file of records in the format specified you might want to consider a class in conjunction with a dictionary (not shown).


    Class InOut
    Enum aProto
    ...
  6. VS 2013 Re: Read lines from bottom to top / find last occurrence

    Instead of putting stops I should have shown the datetimes.

    Debug.WriteLine(ts1.ToString("MMM d,yyyy HH:mm")) 'change first stop to this
    ...
  7. VS 2013 Re: Read lines from bottom to top / find last occurrence

    Some thoughts about how you view the records, and how to convert the timestamps.


    Enum aProto
    desig = 0
    desigLength = 1
    id = aProto.desig + aProto.desigLength
    ...
  8. VS 2013 Re: Read lines from bottom to top / find last occurrence

    What is the timestamp? Is it some part of the actual time of day?
  9. Re: [Sword-Edge Online] 2D RPG Project Recruitment

    Yes I did. I had deleted this almost as soon as I posted it. Surprised you saw it.
  10. Re: [Sword-Edge Online] 2D RPG Project Recruitment

    You are correct. I should not have posted what I did to your recruitment thread. How you arrived at insult escapes me since you aren't old and I am. I may be lacking skill, but at my age I have...
  11. Re: [Sword-Edge Online] 2D RPG Project Recruitment

    You might be a red neck, sorry, an old fart if RPG is an acronym for Report Program Generator. :rolleyes:
  12. Replies
    3
    Views
    160

    +Post New Thread

    In the pop up that shows when hovering over this button add something about using code tags if posting code. A link to a 'How-to' page might also be helpful.
  13. VS 2013 Re: Barcode scanner (LS2208) read barcode

    You're welcome. Mark the thread resolved please.
  14. VS 2013 Re: Barcode scanner (LS2208) read barcode

    In Sub Receive put a breakpoint on this line

    procproto.Set() 'check for possible message


    Run the program, open the port, and scan a barcode. When the breakpoint is...
  15. VS 2013 Re: Barcode scanner (LS2208) read barcode

    Using the code referenced change this

    Const eol As Byte = 10 'LF
    to

    Const eol As Byte = 13 'CR

    and the code should display what is scanned in the label. The code requires two buttons, two...
  16. VS 2013 Re: Barcode scanner (LS2208) read barcode

    I'll bet that the code referenced could be adapted to fit your needs.
  17. VS 2010 Re: VB 2010 Express - Serial port threading problem?

    Normally (I'd like to say always) the code I use looks like this, in which I read bytes and only convert to strings if required.

    Imports System.IO.Ports

    Public Class Form1
    Dim WithEvents...
  18. VS 2013 Re: Barcode scanner (LS2208) read barcode

    You gave an example which is not what I wanted. Is it always that number of characters? Does the line end with a LF or CR maybe?

    see post #15 here...
  19. VS 2013 Re: Barcode scanner (LS2208) read barcode

    What is the format of complete messages from the barcode scanner?
  20. VS 2013 Re: Barcode scanner (LS2208) read barcode

    What is the protocol? Is it some characters followed by a newline?
  21. VS 2010 Re: VB 2010 Express - Serial port threading problem?

    There are some threading threads :) in the forum. Don't know if they are any good or not.
  22. VS 2010 Re: VB 2010 Express - Serial port threading problem?

    My advice is to read what is there when it is there and to worry about the protocol elsewhere. There are several layers of software at play here, and trying to do too much in the handler is...
  23. Re: Adding numbers at the start of lines

    As you add the lines try this

    'assuming x is the line number and 'ln' is the line of text
    'to add to the textbox
    ...
  24. VS 2010 Re: VB 2010 Express - Serial port threading problem?

    Here is a pattern to deal with data reception. Notice how little the DataReceived event handler does. The work of decoding the protocol is moved to another thread. You should be able to accomplish...
  25. Re: Loop through array to get min and max values

    WOW! Let me guess. This is the only question you intend on asking here.
  26. Replies
    21
    Views
    411

    VS 2012 Re: DbProviderFactory - Experiences

    Thanks. Once I overcame the ________ of the underlying systems it went quickly. Most of the SQL statements are the same, and the ones that aren't were covered by the underlying configuration system...
  27. Replies
    2
    Views
    71

    VS 2008 Re: Need help with decimals and currency!

    Replace this line, lstContents.Items.Add(strGrossPay) with



    Dim grossPay As Decimal
    'verify that the line is a number
    If Decimal.TryParse(strGrossPay, grossPay) Then
    ...
  28. Replies
    21
    Views
    411

    VS 2012 Re: DbProviderFactory - Experiences

    So my first application is being tested by the end user, and FWIW it is capable of running on DB2, MS-SQL, and MariaDB just by flipping a switch.

    During the install I did have difficulty. I...
  29. VS 2010 Re: Math Question (Discounts and such)

    'based on the example
    'cash discount - x
    Dim cashDisc As Decimal

    'item price
    Dim itemPrice As Decimal = 100D

    'total off
    Dim totOff As Decimal = 44D
  30. VS 2010 Re: Math Question (Discounts and such)

    Checked at...
  31. Thread: Faking Time?

    by dbasnett
    Replies
    19
    Views
    370

    Re: Faking Time?

    Here is the same code with two alternatives. Option A doesn't show seconds, option B runs the timer at a higher interval.


    Dim gameYear As TimeSpan = TimeSpan.FromHours(12) '12 hours = 1...
  32. VS 2010 Re: Weather app and website information gatherer

    If you live in the US NOAA has an XML version of the weather. If you click on these two links
    ...
  33. Thread: Faking Time?

    by dbasnett
    Replies
    19
    Views
    370

    Re: Faking Time?

    Can the calculation be based on one assumption; 12 hours = 1 gameyear?


    ' 730.485 hours in the average month, 30.436875 avg. days per month
    Dim gameYear As TimeSpan =...
  34. Replies
    3
    Views
    91

    Re: Too many mysql connections

    Are you closing the connections after using them? Show your code.
  35. Replies
    8
    Views
    158

    Re: [RESOLVED] Stop MethodInvoker

    I agree with ident, use IsBackGround and do NOT use .Abort. When I write code that uses threads I use the following pattern. It creates a structure that contains the thread and a...
  36. Re: Validation -- is there a more steamlined method?

    This example has three textboxes for numeric input, and three labels with error messages


    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
    'setup errors
    ...
  37. Thread: Toshiba

    by dbasnett
    Replies
    8
    Views
    265

    Re: Toshiba

    Up to 5 this morning already.
  38. Thread: Toshiba

    by dbasnett
    Replies
    8
    Views
    265

    Re: Toshiba

    One sounds great!
  39. Thread: Toshiba

    by dbasnett
    Replies
    8
    Views
    265

    Re: Toshiba

    What TG said.
  40. Thread: Toshiba

    by dbasnett
    Replies
    8
    Views
    265

    Re: Toshiba

    Ad is at the bottom. I do have cookies enabled. How many times? Enough that I created this thread. It seems to show on almost every page for a period of time, then it stops.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.