Difference between revisions of "SET STRINGLEN"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 36: Line 36:
 
==Products==
 
==Products==
 
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
 
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
 +
[[Category:Documentation]]
 +
[[Category:Commands]]
 +
[[Category:Set_Commands]]

Revision as of 17:24, 10 March 2009

SET STRINGLEN

Class

Expressions and Type Conversion


Purpose

Affects the size of the return value of the STR() function


Syntax

SET STRINGLEN ON | OFF | (<expL>)


See Also

STR()


Description

This set command affects the behavior of the STR() function. If SET STRINGLEN is ON and the optional length parameter of the STR() function is not specified, STR() will return a string the same length as the numeric column. This command allows the optional logical expression <expL> to be evaluated. If a value of .T. is returned, STRINGLEN is set ON. If a value of .F. is returned STRINGLEN is set OFF. By default STRINGLEN is OFF. NOTE: this command has no effect on the STRZERO() function.


Example

? len(total)
         5
? len(str(total))
        10
set stringlen on
? len(str(total))
         5


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer