From Michael Jewell · 1996-04-06 18:26 · #77727 in REXXAMPLE
* In a message originally to All, Andrew Johnson said:
> Read FLAG
> If FLAG=True
> For N=1 to 4
> Read A$
> Print A$
> Next N
> End If
> If FLAG=False Then Read A$ : Print A$
> Data True,"1","2"
> Data False,"3"
> Data True,"4","5"
Hold on, surely it's the data statements. I mean:
You read one number into FLAG:
True/False,
then you read /4/ strings. In the first line, you only have /2/ strings, and thus, Amos is trying to read a number into a string - hence the `Type Mismatch Error`. Try a bit of padding:
Data False,"4","2","",""
That would work.
Cheers,
/\/\ike
---
* Origin: Black Ice (2:255/78)