It is currently Sun Jun 24, 2018 11:06 pm


All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Unit 2 - Lesson 8: Expressions – Functions
PostPosted: Wed Jun 22, 2011 6:54 am 
User avatar

Joined: Wed Nov 17, 2010 8:37 am
Posts: 136
Real Name: Terry L. Wiechmann
Began Programming in MUMPS: 0- 0-1971
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.

_________________
Terry L. Wiechmann


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net