New topic: Using ASC for serial numbers
<http://forums.realsoftware.com/viewtopic.php?t=30716> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message BodoniSystems Post subject: Using ASC for serial numbersPosted: Wed Oct 28, 2009 9:56 am Joined: Tue Jan 30, 2007 10:44 am Posts: 29 Hi I'm using serial numbers in the form XXXX-XXXX-XXXX-XXXX and checking the validity in my application. Is the any way for instance, if I use asc("A") that I would ever get a value different than 65? We get the odd report that the codes that are sent out don't verify in the program and I can't work out why they don't work, when they verify ok on my version. I'm using trim() to make sure no white spaces are used, uppercase and the editfield is defined without multiline. Not all the codes are the same length so I can't use an edit mask. We've just had someone in south africa with this problem. One computer the code didn't verify, another one did. As far as he is concerned they are set up with the same OS (Both Windows XP) and i'd assume the same language settings. Anyone got any ideas? Lee Top DaveS Post subject: Re: Using ASC for serial numbersPosted: Wed Oct 28, 2009 10:32 am Joined: Sun Aug 05, 2007 10:46 am Posts: 1688 Location: San Diego, CA CHR(65) is "A" in all ASCII encodings.....and the subsets of UTF-8 etc. Basically 0x00 to 0x7F are the 7bit ASCII character set which encompasses the standard A-Z, 0-9, a-z and standard punctuation characters _________________ Dave Sisemore MacPro, OSX 10.5.8 RB2009r2 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
