Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix B Format of Search, Return and Sort Expressions> B.2 Common Format

B.2.4 Single-line Function Specification

If single-line functions are specified, the value specified by the text expression or attribute expression is converted by the function and the results are returned.

The definition format for single-line function specification is shown below.

[Figure B-7 Single-Line Function Specification Definition format]

mark1The rlen Function

The rlen function returns the specified number of characters starting with the first character of the string expressed by the text expression or attribute expression.

Example 1

rlen(/company/name/text(),16)

Example 2

rlen(/company/employee/@position,16)

mark1The val Function

The val function extracts only numeric values from the string expressed by the text expression or attribute expression.

The following figure shows the definition for the val function.

[Figure B-8 val Function Definition]

Example

val(/company/employee/id/text())

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006