[TOC] [Prev] [Next] [Bottom]



<@TRANSPOSE>

Syntax

<@TRANSPOSE ARRAY=arrayVarName [SCOPE=scope]>

Description

Exchanges row and column specifications for values in an array; for example, the value in the third row, first column is transposed to the first row, third column. The ARRAY attribute specifies the array to transpose. The optional SCOPE attribute specifies the scope.

This tag returns a new array. The original array is not modified; you can use the <@ASSIGN> meta tag or Assign action to assign the result of this tag to a variable.

Example

If the local variable fred contains a 3 x 4 array of the following form:



1 USA 1.72
2 Canada 84.2
3 Brazil 34
4 Argentina 47

<@ASSIGN NAME="fred_transposed" VALUE='<@TRANSPOSE ARRAY="fred" SCOPE="local">'>

@@fred_transposed returns a 4 x 3 array of the following form:

1 2 3 4
USA Canada Brazil Argentina
1.72 84.2 34 47

See Also

<@ASSIGN>



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.