----boundary-LibPST-iamunique-1633604639_-_-
Content-type: text/plain
Second thought: CAP could be something that is used quite often, so
internal check you require (IF ORD(x) < 65 THEN RETURN(x) ELSE RETURN
CHR(ORD(x)-32) END;) could have been omitted for performance reasons.
But it would be easy to implement
on one's own:
PROCEDURE Caps(x:CHAR) : CHAR;
BEGIN
IF ORD(x) < 65 THEN
RETURN(x)
ELSE
RETURN CHR(ORD(x)-32)
END;
END Caps;
Hope that helps
Rene
"René A. Krywult" wrote:
> CAP seems to be CHR(ORD(x)-32). And since space is 32X, CHR(ORD(x)-32)
> is 00X.
>
> CAP is described as resulting the CORRESPONDENT capital letter. But to
> 32X to 64X there is no correspondant. So this is a question of
> interpretation.
>
> Rene
>
> "Martin, Marc" wrote:
>
> > Hi all,
> >
> > I just got an odd trap in my Blackbox 1.4 application, and I'm
> > curious if this a compiler bug or not. When I call CAP(),
> > and the parameter is a space character (" "), I would expect
> > that the procedure would return a space character. However, it
> > instead returns a string terminator character (00X). Is
> > this what it's supposed to return?
> >
> > Thanks,
> >
> > Marc Martin
> > marc.martin{([at]})nowhere.xy> >
> > --------------------------------------------
> >
> > 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.
--------------------------------------------
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-1633604639_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBccGFyDQpccGFyDQpTZWNvbmQg
dGhvdWdodDogQ0FQIGNvdWxkIGJlIHNvbWV0aGluZyB0aGF0IGlzIHVzZWQgcXVpdGUgb2Z0ZW4s
IHNvXHBhcg0KaW50ZXJuYWwgY2hlY2sgeW91IHJlcXVpcmUgKElGIE9SRCh4KSA8IDY1IFRIRU4g
UkVUVVJOKHgpIEVMU0UgUkVUVVJOXHBhcg0KQ0hSKE9SRCh4KS0zMikgRU5EOykgY291bGQgaGF2
ZSBiZWVuIG9taXR0ZWQgZm9yIHBlcmZvcm1hbmNlIHJlYXNvbnMuXHBhcg0KQnV0IGl0IHdvdWxk
IGJlIGVhc3kgdG8gaW1wbGVtZW50XHBhcg0Kb24gb25lJ3Mgb3duOlxwYXINClxwYXINClxwYXIN
CiBQUk9DRURVUkUgQ2Fwcyh4OkNIQVIpIDogQ0hBUjtccGFyDQogQkVHSU5ccGFyDQogIElGIE9S
R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