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

5. Language Reference > Low Function

Name

Low Function

Syntax

function Low(Type or variable): Ordinal type;

Description

The Low function returns the smallest value of an enumerated type, the lower bound of an array index, or the same information for a variable of ordinal or array type.

Low is built into the compiler and is not a real function.

Tips and Tricks

  • In a for loop, subrange type declaration, or any other situation where you use the limits of an ordinal or array type, always use the Low function instead of referring explicitly to the low ordinal value. A future version of your code might change the type, and you don’t want to scramble through all your code looking for explicit references to an enumerated literal that should really have been calls to the Low function.


  

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