Hello,
Seems like __StrToken(cString,nToken,cToken) works correctly.
Token() is s CT function, while __StrToken() is a native xHarbour RTL
function.

I'm wondering why it's called __StrToken(). Because of the tow leading __'s,
ik looks like its an internal function. is there any reason why it's called
__StrToken()?

Patrick

On Thu, Oct 9, 2008 at 5:48 PM, Patrick Mast <[EMAIL PROTECTED]>wrote:

> Hello,
> Please consider this code:
>
> //------------------------------
> PROCEDURE Main
>
>    LOCAL cToken:="1|2|3||5|6"
>
>    ? Token(cToken,"|",5) // Returns 6 instead of 5
>
> RETURN
> //------------------------------
>
> I would expect Token() to return 5 instead of 6.
>
> Patrick
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to