Mumpster
http://mumpster.org/

Unit 2 - Lesson 8: Expressions – Functions
http://mumpster.org/viewtopic.php?f=29&t=996
Page 1 of 1

Author:  tlwiechmann [ Wed Jun 22, 2011 6:54 am ]
Post subject:  Unit 2 - Lesson 8: Expressions – Functions

This lesson contains all the standard functions available in MUMPS. Read and understand the purpose of each function. In direct programming mode, perform each of the examples illustrated in the guide. Where there are routines defined, create the routine and execute it.

It is important to point out the difference between a function and special variable. Functions have parameters values that are passed into its context and special variables do not. They both return values.

Refer back to the lesson on Strings. The number line concept is useful in understanding what is returned by a typical function that operates on strings. The really important thing to understand is what happens when a position is specified that is less than or greater than the actual string length being operated upon. Typically a null string is returned. This is often a reason for program errors, particularly when dealing with subscripts for arrays.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/