Re: New Thread Single items to number for Edit "Box" Solved
- Posted by Selgor Feb 07, 2011
- 3104 views
Hello Lonny.
Well Derek Parnell answered my post about hex programme . It is in the posts. Get only a D. He has taken an entirely different approach to writing the programme. He uses a function. So Lonny we have a prog that works for Binary, Octal, Hexadecimal. While we think we are pretty good programmers, and you are much better than me,Derek is a brilliant programmer.
Thanks again for your help. Much appreciated. Hope to read you in the future. Oh, and by the way, my programme does work. It is in the conversion (prepend,append) stuff is all fixed up.
Cheers. Selgor.
constant hexdigit = "0123456789ABCDEF" function dec_hex(object number) sequence seq integer digit seq = "" while 1 do digit = remainder(number, 16) seq = hexdigit[digit + 1] & seq number = floor( number/ 16) if number = 0 then exit end if end while return seq end function