× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Since sending a message, why not stop using dynamic\impromptu message [text], and just let the message handler feature replace the string variable TRIMmed into a message string defined with a specific message identifier? ADDMSGD MSGID(XYZABCD) MSGFILE(MyMsgFile) MSG('Customer &1 not found.') VAR((*CHAR 14)) [cmd syntax is suspect\un-verified] and then send the edited\character result as the replacement variable for send message and retrieve message.

Regards, Chuck

John Rusling wrote:
I find I'm constantly using %trim(%editc(Cust#:'3')) for
messages, logs, etc.

I got sick of having to use 2 bifs to do this.

So I made tred() and it works great for numbers with
zero decimal places.

Without tred -

msg_Send('Customer ' + %trim(%editc(sfCust#:'3'))
+ ' not found.');

With tred (optional editcode not passed) -

msg_Send('Customer ' + tred(sfCust#)
+ ' not found.');

I find I'm using this in a ton of places, but, it doesn't
handle decimal places, so --

I made another one, tred2() to do the same thing
but for 2 decimal places.

Anyone got a better and/or cleaner scheme to do this,
as far as handling 1,2,3 or 4 decimal places?
(1 function to handle all decimal place variations)

Improvement suggestions?

<<SNIP>>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.