Chr() Function Question

113 views
Skip to first unread message

Mario H. Sabado

unread,
Jun 6, 2025, 7:48:58 AMJun 6
to 'elch' via Harbour Users
Hi,
How to properly display the correct Chr() value returned by the Asc() function?
*******************************************************
name=YBAÑEZ, RODWIN CANEZAL
substr(acct_name,4,1)= Ñ
asc(substr(acct_name,4,1))= 209
chr(209)= ◄  // how to get Ñ equivalent?
********************************************************
Thanks in advance.

Best regards,
Mario

Harold San Lee

unread,
Jun 6, 2025, 10:32:39 AMJun 6
to harbou...@googlegroups.com

Saludos mario
Intenta con chr(165) para Ñ mayúscula
Y chr(164) para ñ minúscula

Att
Harold


--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/CAGuBOFpa1u8sGLUo4L4TZ5iydD0OOhwtXSjpqs4%3DvGzZ9JpTZA%40mail.gmail.com.

Daniel L. Stuardo S.

unread,
Jun 6, 2025, 12:46:11 PMJun 6
to harbou...@googlegroups.com
Hola!

Prueba con:

asc( hb_strtoutf8( substr(acct_name,4,1) ) )

o bien,

asc( hb_utf8tostr( substr(acct_name,4,1) ) )

No me acuerdo bien, pero una de las dos te servirá.

Saludos!

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/CAGuBOFpa1u8sGLUo4L4TZ5iydD0OOhwtXSjpqs4%3DvGzZ9JpTZA%40mail.gmail.com.


--
Cordialmente,
_______________________________
Daniel L. Stuardo

Mario H. Sabado

unread,
Jun 6, 2025, 7:34:20 PMJun 6
to 'elch' via Harbour Users
Reply all
Reply to author
Forward
0 new messages