Results 1 to 4 of 4

Thread: Problem with 08 ascii (backspace)

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    3

    Question Problem with 08 ascii (backspace)

    Hello,

    I have an application that asks the date to a control card.
    For example:

    I send a Dd (date command) to my control card and my card answers :3508110806 - 35 (confirmation char) 08 (day) 11 (month) 08 (year) 06 (day of the week).

    My card is responding correctly. The problem is when the string arrives to the VB6 socket. It reads only 06. Why? because 35 is deleted by the 08 and the 11 is deleted by the 08 as well, because 08 in ascii is backspace.

    What can i do to ommit this data deletion and assure the complete recepcion of the string?

    In waiting of your comments.

    Regards

  2. #2
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Problem with 08 ascii (backspace)

    Welcome aboard.
    Can you use the Format$() function with higher-bit numeric ASCII characters instead and thus avoid the low-bit ASCII control characters altogether?
    Doctor Ed

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    3

    Re: Problem with 08 ascii (backspace)

    Quote Originally Posted by Code Doc
    Welcome aboard.
    Can you use the Format$() function with higher-bit numeric ASCII characters instead and thus avoid the low-bit ASCII control characters altogether?
    Where do i specify this?
    In the VB6 Socket?

    Thanks for the welcoming

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    3

    Re: Problem with 08 ascii (backspace)

    Quote Originally Posted by Code Doc
    Welcome aboard.
    Can you use the Format$() function with higher-bit numeric ASCII characters instead and thus avoid the low-bit ASCII control characters altogether?
    Check it out!

    Private Sub Socket_DataArrival(Index As Integer, ByVal bytesTotal As Long)
    Dim sItemData As String

    Socket(Index).GetData sItemData, vbString
    sServerMsg = TimeValue(Now) & " Recibio : " & sItemData
    LogMsg1.AddItem (sServerMsg)

    Dim MiCadenaDeBytes() As Byte
    MiCadenaDeBytes = sItemData

    The thing is, where do i specify this? im mean im recieving the string with the deletion...

    Any ideas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width