A function can be used almost anywhere. For instance if you wanted to print
numeric date just use the function with date enclosed in ():
Like:
PRINT NUMDATE(TODAY)

Most functions will give you format and use. Probably my two most common
functions are NUMDATE and SETDATA. Then you can make your own. 
SETDATA(FIELD1,FIELD2) sets FIELD1=FIELD2 OR SETDATA(FIELD1,FIELD2+12) and
almost any expression you desire can be executed. Functions made me the lazy
programmer I am today. Most users think of functions in a print statement.
However, they can be used in triggers and almost any place you can specify a
field.  ...tx/t

NAME: NUMDATE//
MUMPS CODE: S:X X=$E(X,4,5)_"/"_$E(X,6,7)_"/"_$E(X,2,3)
           Replace
EXPLANATION: DATE IN 'NN/NN/NN' FORMAT//
DATE-VALUED:
NUMBER OF ARGUMENTS:
WORD-PROCESSING: 

NAME: SETDATA//
MUMPS CODE: S X1=X//
EXPLANATION: SETS FIRST ARGUMENT EQUAL TO THE SECOND ARGUMENT
           Replace
DATE-VALUED:
NUMBER OF ARGUMENTS: 2//
WORD-PROCESSING:

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:hardhats-
> [EMAIL PROTECTED] On Behalf Of Kevin Toppenberg
> Sent: Sunday, May 15, 2005 3:59 PM
> To: Hardhats Sourceforge
> Subject: [Hardhats-members] How to evoke Fileman functions.
> 
> I just stumbled across the concept of creating Fileman
> functions.  These are stored in file "FUNCTION".  But
> I can't figure out how to evoke them.
> 
> Are they functions that one would use in an
> input/output transform, or would one use them in
> creating programs?
> 
> Thanks
> Kevin
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> Hardhats-members mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to