Hi James,
I get the same result as you do, but here's something interesting.
The following code doesn't work:
begin
!
dim Fld$[*]
read data from "Mike,Was,Here",sep="," to Fld${all}
print Fld$[1]," / ",Fld$[2]," / ",Fld$[3]
-:end
-:run
Mike / /
-:
But, with the addition of a line that prints the array elements, it does.
begin
!
dim Fld$[*]
print Fld$[1],Fld$[2],Fld$[3]
read data from "Mike,Was,Here",sep="," to Fld${all}
print Fld$[1]," / ",Fld$[2]," / ",Fld$[3]
-:end
-:run
Mike / Was / Here
-:
I'm not sure why printing these elements is causing them to be created in the array, but that seems to be what's happening.
Consider the following:
begin
dim Fld$[*]
for z=1 to 3
print Fld$[z]
print dim(read num(Fld$))
next
-:end
-:run
1
2
3
-:
Regards,
Rob Leighton