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



What happens if you then change the length of the field back to 6?
_______________________
Booth Martin
booth@martinvt.com
http://www.MartinVT.com
_______________________




BEllis@oriental.com
Sent by: owner-rpg400-l@midrange.com
05/24/2000 01:57 PM
Please respond to RPG400-L

 
        To:     RPG400-L@midrange.com
        cc: 
        Subject:        Re: BIF's question.


You would end up with the value of '123'.
The result of the way you used the function would set the length of WksStr
to 3 bytes.
If you assigned another variable the value of WksStr it's value would also
end up being '123'.
As long as it was at least three bytes long.






Fabrizio Gurrieri <fabrizio.gurrieri@bartolini.it>@midrange.com on
05/24/2000 10:06:04 AM

Please respond to RPG400-L@midrange.com

Sent by:  owner-rpg400-l@midrange.com


To:   "'RPG400-L@midrange.com'" <RPG400-L@midrange.com>
cc:

Subject:  BIF's question.


The question is this:



D WksStr             s                     5        VARYING INZ('12345')




C                        EVAL               %len(WrkStr)=3


What is the WrkStr value????

Is   '345'
Or         '123'


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.