FM functions are, as the name implies, functions in the FM domain. M
functions, on the other hand, are applicable in the M domain. So
forget about using the FM functions in M code or M routines. But, they
are quite handy in print, sort and input templates and in defining
computed fields (all activities in FM). Kevin Toppenberg wrote: But PRINT NUMDATE(TODAY) would crash if I put this into a M function (i.e. outside Fileman). So I assume that a M function can not call these Fileman custom functions. Correct?I.e, I can't do the following MyFunct(Param1) PRINT NUMDATE(Param1) quit Kevin --- Thurman Pedigo <[EMAIL PROTECTED]> wrote: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 OfKevin ToppenbergSent: Sunday, May 15, 2005 3:59 PM To: Hardhats Sourceforge Subject: [Hardhats-members] How to evoke Filemanfunctions.I just stumbled across the concept of creatingFilemanfunctions. These are stored in file "FUNCTION".ButI 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 spamprotection aroundhttp://mail.yahoo.com-------------------------------------------------------This SF.Net email is sponsored by Oracle SpaceSweepstakesWant 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 Hardhats-members@lists.sourceforge.nethttps://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 Hardhats-members@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/hardhats-members__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail ------------------------------------------------------- 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 Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members -- Greg Kreis http://www.PioneerDataSys.com "You are today where your thoughts have brought you, you will be tomorrow where your thoughts take you." (James Lane Allen) |
- Re: [Hardhats-members] How to evoke Fileman functions. Greg Kreis
- Re: [Hardhats-members] How to evoke Fileman functio... Kevin Toppenberg
- Re: [Hardhats-members] How to evoke Fileman fun... Greg Kreis
- Re: [Hardhats-members] How to evoke Fileman... Gregory Woodhouse
- RE: [Hardhats-members] How to evoke Fileman functio... Thurman Pedigo