× 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.



The length of the field is 100. It is fixed, and will always be 100. But
when I %trim() it,  %len() returned 22. I guess it's nit picking. It's not
worth spending any more time on.

Thanks,

Mark

Mark D. Walter
Senior Programmer/Analyst
CCX, Inc.
mwalter@xxxxxxxxxx
http://www.ccxinc.com


                                                                                
                                                          
                      CWilt@xxxxxxxxxxxx                                        
                                                          
                      Sent by:                    To:       
midrange-l@xxxxxxxxxxxx                                                       
                      midrange-l-bounces@m        cc:                           
                                                          
                      idrange.com                 Subject:  RE: %Len problem    
                                                          
                                                                                
                                                          
                                                                                
                                                          
                      09/08/2004 10:37 AM                                       
                                                          
                      Please respond to                                         
                                                          
                      Midrange Systems                                          
                                                          
                      Technical Discussion                                      
                                                          
                                                                                
                                                          
                                                                                
                                                          




Yes, %len returns the defined size of a fixed length field.

Look at your test:

> No, %size returns the defined size. I did a test with the
> following code
> where TESTX was defined as 100.
>
> /free
>   testx = 'abcdefghijklmnopqrstuv';
>   lenoftest = %len(testx);
>   dsply lenoftest;
> This returned 100.
>

That's all I was saying.

Charles
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.







As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.