Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.xharbour

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-22-2008, 10:45 AM
ella.stern@xharbour.com
Guest
 
Posts: n/a
Default RAT() starting position

Hello,

Please try the below test code:

function main()
local cSearch := "12345789-123456789-"
? rat( "7", cSearch )
? rat( "7", cSearch, 10 )
inkey(0)
return NIL

Here I get:
16
16

so the starting position of the search seems to be ignored.

Ella
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 12-22-2008, 12:13 PM
N:dlzc D:aol T:com \(dlzc\)
Guest
 
Posts: n/a
Default Re: RAT() starting position

Dear ella.stern:

<ella.stern@xharbour.com> wrote in message
news:818d42ea-b1e3-4b33-8162-96a198d6dfad@i20g2000prf.googlegroups.com...
> Hello,
>
> Please try the below test code:
>
> function main()
> local cSearch := "12345789-123456789-"
> ? rat( "7", cSearch )
> ? rat( "7", cSearch, 10 )
> inkey(0)
> return NIL
>
> Here I get:
> 16
> 16
>
> so the starting position of the search seems to be ignored.


What xHarbour version are you running?

David A. Smith


Reply With Quote
  #3 (permalink)  
Old 12-22-2008, 12:54 PM
Tim Jacob
Guest
 
Posts: n/a
Default Re: RAT() starting position

N:dlzc D:aol T:com (dlzc) wrote:
> Dear ella.stern:
>
> <ella.stern@xharbour.com> wrote in message
> news:818d42ea-b1e3-4b33-8162-96a198d6dfad@i20g2000prf.googlegroups.com...
>> Hello,
>>
>> Please try the below test code:
>>
>> function main()
>> local cSearch := "12345789-123456789-"
>> ? rat( "7", cSearch )
>> ? rat( "7", cSearch, 10 )
>> inkey(0)
>> return NIL
>>
>> Here I get:
>> 16
>> 16
>>
>> so the starting position of the search seems to be ignored.

>
> What xHarbour version are you running?
>
> David A. Smith
>
>

I'm running rev 6220, and get the same results. As a matter of fact I
get the same 16 no matter what number I put as the starting position -
whether it be -5 or 0 or 25 or 100.
Reply With Quote
  #4 (permalink)  
Old 12-22-2008, 02:02 PM
dlzc
Guest
 
Posts: n/a
Default Re: RAT() starting position

Dear Tim Jacob:

On Dec 22, 6:54*am, Tim Jacob <tja...@nospam.jollyfarmer.com> wrote:
> N:dlzcD:aol T:com (dlzc) wrote:
> > <ella.st...@xharbour.com> wrote in message
> >news:818d42ea-b1e3-4b33-8162-96a198d6dfad@i20g2000prf.googlegroups.com....
> >> Please try the below test code:

>
> >> function main()
> >> * local cSearch := "12345789-123456789-"
> >> * ? rat( "7", cSearch )
> >> * ? rat( "7", cSearch, 10 )
> >> * inkey(0)
> >> return NIL

>
> >> Here I get:
> >> 16
> >> 16

>
> >> so the starting position of the search seems to be
> >> ignored.

>
> > What xHarbour version are you running?

>
> I'm running rev 6220, and get the same results. *As a
> matter of fact I get the same 16 no matter what
> number I put as the starting position - whether it be
> -5 or 0 or 25 or 100.


It was a bug in June:
http://groups.google.com/group/comp....0d6149965c297b

Apparently was either never reported:
http://www.xharbour.com/support/bugreporter/
.... or was ignored when reported. Someone care to report this?

David A. Smith
Reply With Quote
  #5 (permalink)  
Old 12-22-2008, 03:44 PM
Tim Jacob
Guest
 
Posts: n/a
Default Re: RAT() starting position

dlzc wrote:
> Dear Tim Jacob:
>
> On Dec 22, 6:54 am, Tim Jacob <tja...@nospam.jollyfarmer.com> wrote:
>> N:dlzcD:aol T:com (dlzc) wrote:
>>> <ella.st...@xharbour.com> wrote in message
>>> news:818d42ea-b1e3-4b33-8162-96a198d6dfad@i20g2000prf.googlegroups.com...
>>>> Please try the below test code:
>>>> function main()
>>>> local cSearch := "12345789-123456789-"
>>>> ? rat( "7", cSearch )
>>>> ? rat( "7", cSearch, 10 )
>>>> inkey(0)
>>>> return NIL
>>>> Here I get:
>>>> 16
>>>> 16
>>>> so the starting position of the search seems to be
>>>> ignored.
>>> What xHarbour version are you running?

>> I'm running rev 6220, and get the same results. As a
>> matter of fact I get the same 16 no matter what
>> number I put as the starting position - whether it be
>> -5 or 0 or 25 or 100.

>
> It was a bug in June:
> http://groups.google.com/group/comp....0d6149965c297b
>
> Apparently was either never reported:
> http://www.xharbour.com/support/bugreporter/
> ... or was ignored when reported. Someone care to report this?
>
> David A. Smith


Looks like it was reported Friday and verified today.
http://www.xharbour.com/support/bugr...detail&bug=375
Reply With Quote
  #6 (permalink)  
Old 12-22-2008, 06:45 PM
Enrico Maria Giordano
Guest
 
Posts: n/a
Default Re: RAT() starting position


"dlzc" <dlzc1@cox.net> ha scritto nel messaggio
news:0fb95b08-19c2-4d7f-9aab-075cd9fafe35@i18g2000prf.googlegroups.com...
> Someone care to report this?


Please test after:

2008-12-22 20:45 UTC+0100 Enrico Maria Giordano
<e.m.giordano@emagsoftware.it>

EMG

--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page: http://www.emagsoftware.it/emgmusic


Reply With Quote
  #7 (permalink)  
Old 12-22-2008, 10:15 PM
ella.stern@xharbour.com
Guest
 
Posts: n/a
Default Re: RAT() starting position


Thank you.

>
> Please test after:
>
> 2008-12-22 20:45 UTC+0100 Enrico Maria Giordano
> <e.m.giord...@emagsoftware.it>
>
> EMG
>
> --
> EMAG Software Homepage: * *http://www.emagsoftware.it
> The EMG's ZX-Spectrum Page:http://www.emagsoftware.it/spectrum
> The Best of Spectrum Games:http://www.emagsoftware.it/tbosg
> The EMG Music page: * * * *http://www.emagsoftware.it/emgmusic


Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Annotate issue finding starting location of axis label Mike Zdeb Newsgroup comp.soft-sys.sas 0 12-03-2008 02:58 PM
Manager Marketing Analytics Position Tammy Miles Newsgroup comp.soft-sys.sas 0 07-18-2008 11:58 PM
Assistant Director position opening at Dartmouth Heather Kim Newsgroup comp.soft-sys.sas 0 05-22-2008 03:55 PM
UNC-CH School of Medicine position announcement Dale Krams Newsgroup comp.soft-sys.sas 0 02-02-2007 03:43 PM
Re: CALL PRXNEXT() David L Cassell Newsgroup comp.soft-sys.sas 0 09-07-2006 05:55 AM



All times are GMT. The time now is 01:10 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.