Hello [EMAIL PROTECTED]

On 12-Oct-99, [EMAIL PROTECTED] wrote:

> Could someone please provide some input as to why my script does not
> convert all lowercase letters to uppercase? It seems to stop after the
> first conversion (which incidentally is to the wrong letter).



Well, the wrong letter is due to using the wrong values;)

a=97
A=65

a - A = 32

as to one method to do this, besides the builtin function "uppercase"
REBOL [
    Title:  "Upcase string"
]


string: ask "Please enter a string to upcased: "

upcase-string: ""

foreach character string [
    if character > 96 [character: character - 32]
    append upcase-string character
]
head upcase-string



HopeThisHelps,

Dick

-- 
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
 *Dick Whiting* <[EMAIL PROTECTED]>
 _http://www.europa.com/~dwhiting/_
 /Satyre/ on Undernet #AmigaCafe#
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#

Reply via email to