FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour REPLLEFT()
Posts: 199
Joined: Tue Apr 22, 2008 09:54 AM
REPLLEFT()
Posted: Thu Jun 26, 2008 07:42 AM

Lo primero presentarme, soy nuevo por estos lares. Adqurir铆 recientemente la herramienta FiveWin Harbour y estoy comenzando a migrar "tutelado" mi aplicaci贸n hecha en Clipper, por lo que a buen seguro, solicitar茅 ayuda al foro, ayuda que espero alg煤n d铆a pueda devolver!

La primera me la he llevado en la frente con esta funci贸n de las Ca-Tools.
Funciona de la siguiente manera: (extra铆do de las NG)

REPLLEFT()
Exchanges particular characters at the beginning of a string


Syntax
REPLLEFT(<cString>,<cReplacecharacter|
nReplacecharacter>,[<cSearchCharacter|
nSearchCharacter>]) --> cString
Arguments
<cString> [@] Designates the string that is processed.
<cReplacecharacter|nReplacecharacter> Designates the character that replaces the character in <cSearchCharacter|nSearchCharacter> at the beginning of the <cString>.
<cSearchCharacter|nSearchCharacter> Designates the character at the beginning of <cString> that is replaced by <cReplacecharacter| nReplacecharacter>. The default value is a space, CHR(32).

Returns
The processed <cString> is returned.
Description
REPLLEFT() can be used to exchange all leading characters in a string
for any other selected character.
Note
. The return value of this function can be suppressed by
implementing CSETREF() to save space in working memory.
Examples
. Replace the leading spaces with zeros:
? REPLLEFT(" 1234", "0") // "001234"
. Replace the leading zeros with spaces:
? REPLLEFT("001234", " ", "0") // " 1234"
. Replace only the leading spaces:
? REPLLEFT(" 1 ", "0") // "001 "

Me gustar铆a saber si esta funci贸n (o alguna similar) est谩 recogida en FiveWin. No he encontrado nada parecido.

Saludos y GRACIAS!

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
REPLLEFT()
Posted: Thu Jun 26, 2008 08:40 AM

David,

Bienvenido a los foros :-)

La funci贸n que comentas, asi como la mayor铆a de las funciones de Ca-Tools, est谩 incluidas tanto en Harbour como en xHarbour, en la secci贸n de contribuciones (hbct: Harbour Ca-Tools).

Esa librer铆a no la proporcionamos con la distribuci贸n estandard de Harbour/xHarbour (ya que no incluimos todas las contribuciones), pero podemos construirla y envi谩rtela :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 199
Joined: Tue Apr 22, 2008 09:54 AM
Gracias
Posted: Thu Jun 26, 2008 08:46 AM

Antonio,

Gracias por la bienvenida y por la respuesta... estar铆a interesado en ella...

Saludos!

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
REPLLEFT()
Posted: Thu Jun 26, 2008 04:07 PM

David,

Aqui tienes la versi贸n para xHarbour:

http://rapidshare.com/files/125188265/ct.lib.html

La versi贸n de Harbour est谩 dando fallos al construirla. Hay que revisar su fichero make.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 199
Joined: Tue Apr 22, 2008 09:54 AM
REPLLEFT()
Posted: Thu Jun 26, 2008 04:40 PM

Mil Gracias Antonio!

Cambiar茅 de compilador... no es problema. Mucho menos ahora al principio. :wink:

Saludos!

Continue the discussion