Andrew's script should be followed by 
string: head string,
as it leaves string with its "pointer" pointing at its tail.

Russell, [EMAIL PROTECTED]
----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 1999 12:55 AM
Subject: [REBOL] string iteration aborts prematurely Re:(2)


> Russ wrote:
> > The offset between upper and lower case characters is 32, not 26 as
> you presumed.  That's why "a" was becoming "G".  Check an ASCII
> character chart.
> 
> And if you can't find an ASCII character chart any where:
> 
> foreach ch string: ask "Please enter a string to upcased: " [
> offset: (to-char "a") - (to-char "A")
> if (ch >= to-char "a") and (ch <= to-char "z") [
> change string ch - offset
> ]
> string: next string
> ]
> 
> Andrew Martin
> Mine's buried in my book piles...
> [EMAIL PROTECTED]
> http://members.xoom.com/AndrewMartin/
> Online @ 33,600 Baud!
> -><-
> 
> 

Reply via email to