Author Topic: Keyboard Input Negative (-) Value.  (Read 3110 times)

Godra

  • Hero Member
  • *****
  • Posts: 1439
    • View Profile
Re: Keyboard Input Negative (-) Value.
« Reply #15 on: November 04, 2019, 08:12:26 PM »
It's a member of Microsoft.VisualBasic.Conversion.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5270
    • View Profile
    • AdvancedHMI
Re: Keyboard Input Negative (-) Value.
« Reply #16 on: November 04, 2019, 08:19:55 PM »
I removed all of the references to Microsoft.VisualBasic, so I'll try this:

Code: [Select]
        Public Shared Function IntToHex(ByVal data As Integer) As String

            If data < 0 Then
                Return data.ToString("X").Substring(4)
            Else
                Return data.ToString("X").PadLeft(4, "0"c)
            End If
        End Function

Godra

  • Hero Member
  • *****
  • Posts: 1439
    • View Profile
Re: Keyboard Input Negative (-) Value.
« Reply #17 on: November 04, 2019, 08:30:16 PM »
That seems to work properly as well.

joko markono

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: Keyboard Input Negative (-) Value.
« Reply #18 on: November 21, 2019, 08:26:52 PM »
I'm sorry where should i access to modify the code please

Godra

  • Hero Member
  • *****
  • Posts: 1439
    • View Profile
Re: Keyboard Input Negative (-) Value.
« Reply #19 on: November 22, 2019, 12:09:59 AM »
That seems to be inside the dll file so you will have to wait for Archie to do it.

joko markono

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: Keyboard Input Negative (-) Value.
« Reply #20 on: March 26, 2020, 03:47:59 AM »
i just want to keep this link here for reference:
https://www.advancedhmi.com/forum/index.php?topic=764.msg3648#msg3648

joko markono

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: Keyboard Input Negative (-) Value.
« Reply #21 on: March 30, 2020, 04:36:11 AM »
this problem is solved with v399y Beta35