Returns the number of rows of a text.
1 string.getRows
<string.getRows>
<var | expr /> !
</string.getRows>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | expr | object2String |
Returns | |
---|---|
Type | Description |
integer |
Example
Shows the number of lines passed as argument.
Copy
<xsql-script name='getRows_sample1'> <body> <println> <string.getRows> <string>Test for the generation of crc32</string> </string.getRows> </println> </body> </xsql-script>
Returns:
1
Example
Shows the number of lines of the file
Copy
<xsql-script name='getRows_sample2'> <body> <println> <string.getRows> <file name='c:\tmp\edit1' type='absolute'/> </string.getRows> </println> </body> </xsql-script>
53
Example
Shows the greater number of lines contained in the column of the table cdoctext
Copy
<xsql-script name='getRows_sample3'> <body> <println> <string.getRows> <select> <columns> MAX(text_data) </columns> <from table='cdoctext' /> </select> </string.getRows> </println> </body> </xsql-script>
1