The pattern match operator ? can be used to determine if a value is a number:
You could attach the CON attribute to your field like this: [EMAIL PROTECTED] Or you could attach a conditional print attribute [EMAIL PROTECTED] Or you could be more direct: xx.print.only.if.number DAT=INT LEN=10 [EMAIL PROTECTED] @field} You actually don't need the IF DAT=INT LEN=10 [EMAIL PROTECTED] Because the pattern match operator used with 0N (zero N) returns a nil unless @field is a number Joe Cocuzzo Vice President NPR Services Iatric Systems, Inc. Phone/Fax: (978) 805-4115 Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Web: www.iatric.com <http://www.iatric.com> ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laura Wilson Sent: Friday, July 06, 2007 1:27 PM To: [email protected] Subject: [MEDITECH-L] Question for NPR gurus I have a field that I only want to print if the field is numeric. Is there a way to write and IF statement for this or accomplish it in another way? Thanks! Laura Wilson Tanner Medical Center ------------------------------------------------------------------------ -------------------------------------------- This e-mail and any files or attachments transmitted with it contain information that is confidential and privileged. This information is intended only for the use of the individual(s) and entit(ies) to whom it is addressed. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please contact the sender immediately and destroy all copies of this communication.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= To subscribe or unsubscribe to the meditech-l, visit http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com To check the status of the meditech-l, visit MTUsers.NET For help, email [EMAIL PROTECTED] Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki ______________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com
