I don't know if this will help, but in HyperCard, direct string
comparisons don't show up differences in case.
e.g. "HyperCard" = "hyPERcard" gives true.
The solution was to use 2 comparisons, a greater than and a less than:
if string1 < string2 or string1 > string2 then answer "Different"
else answer "The same."
Perhaps this technique would work for you as well as it won't care that
some of your comparisons are numeric.
Sarah
On Friday, March 29, 2002, at 05:15 am, Ben Rubinstein wrote:
> Just been stopped dead by a fault which I cannot track down. My code is
> rejecting a file because it doesn't pass a test, which it should. It
> comes
> down to comparing two strings, and rejecting the file because they
> aren't
> equal.
>
> But they are. I can put the two strings into globals, and examine them;
> they have the same length (ten characters) and the same characters,
> whether
> compared as characters or as codes from chartonum. Rev will say that
> the
> two strings are of equal length, and that all characters are the same
> length
> - but that the two strings are not equal.
<snip>
_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution