Search found 4 matches

by Tim051
Tue Feb 19, 2013 9:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Ascii to Hex conversion
Replies: 8
Views: 4544

Re: Ascii to Hex conversion

Hi Simon, I put your code in, and indeed, if I select a '12' on the button, a 0c gets written to the text file. The problem is that each of these characters - 0 & c are handled as separate characters. If I open the file with my hex debugger, it shows two separate characters, a 30, and a 63. What I n...
by Tim051
Tue Feb 19, 2013 6:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Ascii to Hex conversion
Replies: 8
Views: 4544

Re: Ascii to Hex conversion

Hi Sturgis, Thanks for the note. The main screen has 16 buttons which select the 'Hours' and 'Minutes' for 8 alarms on a project I'm working on. The hours pulldown buttons are 0-23, and the minutes are 0-59. There is also a 'send message' button which takes each of the hours and minutes, puts them i...
by Tim051
Tue Feb 19, 2013 4:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Ascii to Hex conversion
Replies: 8
Views: 4544

Re: Ascii to Hex conversion

Hi Simon,

Thanks for the info. I tried them out, and indeed, it does return a hex value.

However, when I write the data out to a file, the '0A' (for 10). becomes 30 41 !! Guess what I 'really' need is BCD!

Tim
by Tim051
Tue Feb 19, 2013 6:19 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Ascii to Hex conversion
Replies: 8
Views: 4544

Ascii to Hex conversion

Hi Folks, Newbie here! I've got my first card all done with an option button that let me select 23 values, from 1 to 23. (actually, there's quite a bit more, but let's just stick with this one example) :-) I would like to convert these ascii values that get returned to hex - for instance, a 09 to 09...