On Tue, 20 Nov 2001 06:47:25 GMT, Marsha wrote: >Just wondering if anyone can confirm for me that the CompareStrings >($181c) function in the List Toolset is in fact case insensitive. >Looking at a disassembly makes it seem so; but so far I haven't managed to >cobble together a good test program to test it. According to the Programmer's Reference for System 6.0, CompareStrings does a case-insensitive compare. This means it converts the text to "upper-case" before comparing the strings. However, this conversion isn't just making lower-case letters (a-z) into upper-case ones (A-Z), there are other characters that get translated as well and these are all listed on page 40 of the reference. In case you don't have that manual, here is an abbreviated version of the table: 'a'..'z' becomes 'A'..'Z' $80..$9F, $CB, $CC, $CD become unaccented capital letters $A2 becomes 'C' $A7 becomes 'B' $AB becomes an apostrophe (') $AF becomes '0' $BE becomes $AE $BF becomes '0' '<<' and '>>' becomes quotations (") $CA becomes space $CF becomes $CE $D0 becomes '-' $D1 becomes '-' Double curly quotes become quotations (") Single curly quotes become apostrophes (') $D8 becomes 'Y' $D9..$F5 get translated appropriately for int'l purposes All other are unchanged NOTE: The original strings do not get modified. -- Jeff Blakeney - Dean of the Apple II Unversity on A2Central.com - CUT the obvious from my address to e-mail me