Binary object encode to hex crash

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Whenever I try to encode to hex with the binary object it just crashes. I have no idea why. And the help file for the object doesnt help at all, it just says what it does, not how to use it.

    Should I be encoding before I load my file or something?!?

    Im trying to do this because Hex$() doesnt work right for some reason. The byte reads 8E in a regular hex editor but Hex$() spits it out as FFFFFFFFFFFFFF8E and its starting to really tick me off. I thin kits because Hex$() is in Qword or something (got this from playing with hex calculator) and I need it to just be in byte.

  • The problem is that some extensions read bytes as signed numbers and as a result you get -114 when you read 8E. As negative numbers cannot be displayed as a hexadecimal value (atleast Hex$() can't) the result gets wrapped around to FFFF FFFF FFFF FF8E. To solve the problem you can turn the number into an unsigned byte by using (value + 256) mod 256.

    //Jonas
    Please login to see this link.

  • Not what I need..

    Right$(Hex$(byte( "Binary object", 12723396+(6*List Select( "List" )))), 2)

    Is what Im using. Works great, but when I have a single digit value such as 1 it returns "x1". So I tried doing:

    Right$(Hex$(byte( "Binary object", 12723396+(6*List Select( "List" )))), Len(Hex$(byte( "Binary object", 12723396+(6*List Select( "List" )))))-2)

    which works great but it returns it in Qword (whatever that is) which means I get FFFFFFFFFFFFFF8E for that value.

    EDIT: Didnt see above post. That was directed to jamie. Reading it now..

    EDIT2: Ok, so Id do Hex((value + 256) mod 256) ?

    EDIT3: Ah, dude. thanks so much. Got it to work with

    Right$(Hex$((byte( "Binary object", 12723396+(6*List Select( "List" )))+256) mod 256), Len(Hex$((byte( "Binary object", 12723396+(6*List Select( "List" )))+256) mod 256))-2)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!