OV_FORMAT_CASE

LANSA

OV_FORMAT_CASE
Changing the Case of a String The Things that Make Up this ExampleTo Execute this Example


  
   Category        : Other vendor built-in functions
   --------

   Function name   : OV_FORMAT_CASE
   -------------

   Function No     : 934
   -----------

   DLL Required    : OV_P934.DLL or process/function SET_179/OV@P934 
   ------------

   Description     : Format the case of a string
   -----------


   Availability    : Windows       -> YES
                     Unix          -> NO
                     OS/400        -> YES

   ARGUMENTS
   ---------

          Type  Required/                                   Length  Decimals
   Number  A/N  Optional Description                        Min Max Min Max
   ------  ---  -------- -----------                        ------- -------

     1     A     Req     Text string to be formatted          1  256 

     2     A     Opt     The type of format required          5  9   
                         Valid Values are: 
                         LOWERCASE, convert all characters
                         in the string to lowercase  
                         TITLE, the first character of each 
                         word to upper, all others to 
                         lower
                         SENTENCE, first character of
                         sentence to upper, all others to
                         lower.

     3     A     Opt     Character(s) after which              1   20
                         uppercase is required. For 
                         example, if you would like 
                          this string returned:

                          [email protected]

                          this argument would have a 
                          '.@' a dot an at sign. 


   RETURN VALUES
   -------------

          Type  Required/                                   Length  Decimals
   Number  A/N  Optional Description                        Min Max Min Max
   ------  ---  -------- -----------                        ------- -------

     1     A     Req     Return converted string             1  256