Re: Predeclared function CAP

From: (wrong string) érard Meunier <"Gérard>
Date: Wed, 15 Sep 2004 22:07:56 +0200

----boundary-LibPST-iamunique-285770895_-_-
Content-type: text/plain

> recently I ran into some mischief using the predeclared Compiler Function
> CAP because the result was somewhat unexpected.
> The results and the problem can be found in the following coded text,
> perhaps somebody knows an answer:

Apparently, this function substracts 32 (20H) from the code of many
characters. It's correct for lower case letters, but a little surprising for
digits or punctuations. I don't know why this behaviour has been chosen. I
never use CAP myself but Strings.Upper, which works properly, but may be a
little slower.

Regards.

Gérard

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-285770895_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCA+IHJlY2VudGx5IEkgcmFuIGlu
dG8gc29tZSBtaXNjaGll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GXQ0KDQ=


----boundary-LibPST-iamunique-285770895_-_---
Received on Wed Sep 15 2004 - 22:07:56 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:36 UTC