Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1 Character Functions > Miscellaneous String Functions

Miscellaneous String Functions

Don't be put off by the "miscellaneous" in this heading. Many of these functions are extremely useful; they just didn't fit neatly into categories.

Function:   CHOOSEC

Purpose:    To select a character value from a list of character values (supplied as the 2nd to nth arguments of the function)

Syntax:      CHOOSEC(item-number, value-1<, value-2, …>)

item-number selects which item to return from the list of values. If the value is negative, counting starts at the end of the list.

value-n are character values from which to choose.

If the length of the resulting character value has not been defined, it will be assigned a length of 200.

Examples:

For these examples, Name1 = "Fred", Name2 = "Harriet", Name3 = "Joyce".


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint