• advertisement_alt
  • advertisement_alt
  • advertisement_alt
Luiz FERNANDO

[RESOLVIDO] caracter chr(10)

7 posts in this topic

Pessoal alguém saberia me ajudar nessa sintaxe, a windev não aceita o chr(10)

Replace(TABLE_vendas.COL_Razao, chr(10), "")

 em xharbour eu fazia dessa forma

 

wLin+=strtran(aCliente[i,2], chr(10), "" )+'|'

 

obg

Share this post


Link to post
Share on other sites

Boa tarde @Luiz FERNANDO,

tente assim:

Replace(TABLE_vendas.COL_Razao, Charact(10), "")

Att,

Evandro Andersen
HDTec Software

2 people like this

Share this post


Link to post
Share on other sites

Valeu Evandro e Amarildo pela ajuda, só deu usando apenas o CR

Replace(TABLE_vendas.COL_fantasia,CR,"")

 

2 people like this

Share this post


Link to post
Share on other sites

Luiz, cr seria charact(13) e não (10) por isso não funcionou

 

2 people like this

Share this post


Link to post
Share on other sites

por isso tambem tinha perguntado.. 

tambem achei que era cr

2 people like this

Share this post


Link to post
Share on other sites

CR para o Windows é a somatória dos caracteres 13 e 10, mas se o texto for de origem do LINUX será apenas o caractere 10.

[]´s

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now