Split followed by Transpose

Glen Bojsza gbojsza at mac.com
Mon Mar 22 21:27:08 EST 2004


I am testing the transpose command and can't seem to figure it out

I have a field "test"
1	23	33
2	12	67

My script is:

on MouseUp
put fld "test" into texam
split texam using return and tab
put the keys of texam -- this proves that texam is an array and I get 
the correct keys
put transpose(texam) into fld " results"
end mouseUp

The error that I keep getting is "can't transpose this array"

I have tried a single column of numbers substituting

...
...
split texam using return
...
...
  And I get the same error.

Any other combination or ideas of what I am missing?

thanks



More information about the use-livecode mailing list