|
-
Nov 8th, 2008, 11:28 AM
#1
Thread Starter
New Member
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
-
Nov 8th, 2008, 11:51 AM
#2
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?
-
Nov 8th, 2008, 11:56 AM
#3
Thread Starter
New Member
Re: Problem with 08 ascii (backspace)
 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
-
Nov 8th, 2008, 12:02 PM
#4
Thread Starter
New Member
Re: Problem with 08 ascii (backspace)
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|