Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rat() starting position

8 views
Skip to first unread message

Ted

unread,
Jun 5, 2008, 11:00:31 PM6/5/08
to
Hello Group,

The rat(cstring,string,start,end) function seems to be ignoring the
start position. Anyone else having this problem?

Thanks,

Ted

N:dlzc D:aol T:com (dlzc)

unread,
Jun 5, 2008, 11:21:48 PM6/5/08
to
Dear Ted:

"Ted" <ted.ko...@gmail.com> wrote in message
news:17544f01-37cf-4a6f...@x19g2000prg.googlegroups.com...
...


> The rat(cstring,string,start,end) function seems to
> be ignoring the start position. Anyone else having
> this problem?

I agree. Report it as a bug.

Program...
procedure main
cSearch := "1234578901234567890"
? rat( "89", cSearch, len(cSearch), 1 )
? rat( "89", cSearch, 12, 1 )
return

... returns "17" for both print statements. I am running a
fairly old version of xHarbour too (Jan'06 or '07 I think).

David A. Smith


0 new messages