Eduardo, Sorry, no you can't. This will break numeric compatibility of CHAR type in that context.
Ron -------------------------------------------------- From: "Eduardo Fernandes" <[email protected]> Sent: Wednesday, April 01, 2009 4:25 AM To: "Xharbour-Developers List" <[email protected]>; "Ron Pinkas" <[email protected]> Subject: Re: [xHarbour-developers] Str() function. > > Ron, > Ron, > > OK, since this has nothing to do with str/strzero, I can fix these > functions to return error base if the arguments are not numbers, like > Clipper ? > > regards, > Eduardo > > > --- Em seg, 30/3/09, Ron Pinkas <[email protected]> escreveu: > >> De: Ron Pinkas <[email protected]> >> Assunto: Re: [xHarbour-developers] Str() function. >> Para: "Eduardo Fernandes" <[email protected]>, "Xharbour-Developers >> List" <[email protected]> >> Data: Segunda-feira, 30 de Março de 2009, 23:24 >> Eduardo, >> >> The feature has nothing to do with Str() or StrZero() it's >> a GENERIC SUPPORT. You can use a CHAR type as NUMERIC in >> every context that numeric is supported. >> >> Ron >> >> -------------------------------------------------- >> From: "Eduardo Fernandes" <[email protected]> >> Sent: Monday, March 30, 2009 4:33 PM >> To: "Xharbour-Developers List" >> <[email protected]>; >> "Ron Pinkas" <[email protected]> >> Subject: Re: [xHarbour-developers] Str() function. >> >> > >> > Ron, >> > >> > Sorry, by I don't understand what benefit the users >> will have with this feature on str/strzero functions. This >> is not Clipper compliant and return unexpected results. >> > >> > regards, >> > Eduardo >> > >> > >> > --- Em seg, 30/3/09, Ron Pinkas <[email protected]> >> escreveu: >> > >> >> De: Ron Pinkas <[email protected]> >> >> Assunto: Re: [xHarbour-developers] Str() >> function. >> >> Para: "Eduardo Fernandes" <[email protected]>, >> "Xharbour-Developers List" <[email protected]> >> >> Data: Segunda-feira, 30 de Março de 2009, 19:45 >> >> Eduardo, >> >> >> >> This is a documented intentional feature. Every >> STRING of >> >> ONE CHARACTER is >> >> NUMERIC COMPATIBLE, as per xHarbour support of a >> CHAR sub >> >> type. >> >> >> >> Ron >> >> >> > >> > >> > >> > Veja quais são os assuntos do >> momento no Yahoo! +Buscados >> > http://br.maisbuscados.yahoo.com >> > >> > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com > ------------------------------------------------------------------------------ _______________________________________________ xHarbour-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xharbour-developers

