|
Pages: [1]
|
 |
|
Author
|
Topic: Testing a single characetr variable for equality to space or ..... (Read 613 times)
|
|
jfdutcher
|
The single line below seems to work in checking a single character from a record read in thru a port (rec1) for being greater than a space character.
if ((substr rec1 (y + j) + 2054 1) > " ")
When I used single quotes instead of double quotes Rebol objected.
I thought single quotes properly 'defined' a single character...... which seems comparable to the size and nature of the character defined on the left of the 'greater than' sign ........ yet Rebol seems to want a 'string' of length 1 instead.
Why's that ?
|
|
|
|
|
Logged
|
|
|
|
|
rebolek
|
no, single character is defined like this: #"a" you can't use 'a' in REBOL. single quote is for literal value as in 'a.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |