×
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.
Heh heh heh. . . (sheepish) . . . yes Rob.
John
Methinks that LastPos is something you wrote, but failed to include?
//===============================================================
p LastPos...
p b
d pi 10i 0
d pString 256 const varying
d pWhat 1 const
// Pass in a string and this returns the rightmost position
// of the 'What' (2nd) parameter. Could be . or a / or anytin.
//===============================================================
d len s 10i 0
d spos s 10i 0
d pos s 10i 0
d lastpos s 10i 0
len = %len(%trimr(pString));
spos = 1;
//---
dou (pos=0) or (spos>=len);
pos = %scan(pWhat :pString :spos);
if pos > 0;
spos = pos + 1;
lastpos = pos;
endif;
enddo;
//---
return lastpos;
p e
<br />
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.
As an Amazon Associate we earn from qualifying purchases.