need some help with baseConvert()
Hello, I am using: put baseConvert(number,32,10) into tResult where number can be numeric or alpha input by the user. When number is AB the result is 331, ok. But when number is e.g. QW I get an error baseConvert can't convert this number I would like to check the user input for valid values which can be converted by the function, before I pass it to the baseConvert(), and the function throws this error to the user. What is the valid range for this baseConvert? Any help appreciated. Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: need some help with baseConvert()
LC is using base32Hex. That means valid chars are 0-9 and A-V. See also Wikipedia: http://en.wikipedia.org/wiki/Base32#base32hex On 24 Oct 2014, at 10:20, Tiemo Hollmann TB toolb...@kestner.de wrote: Hello, I am using: put baseConvert(number,32,10) into tResult QW I get an error -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
AW: need some help with baseConvert()
Thank you Björnke for your helpful answer Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Björnke von Gierke Gesendet: Freitag, 24. Oktober 2014 11:46 An: How to use LiveCode Betreff: Re: need some help with baseConvert() LC is using base32Hex. That means valid chars are 0-9 and A-V. See also Wikipedia: http://en.wikipedia.org/wiki/Base32#base32hex On 24 Oct 2014, at 10:20, Tiemo Hollmann TB toolb...@kestner.de wrote: Hello, I am using: put baseConvert(number,32,10) into tResult QW I get an error -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode