Que tipo de dato devuelve HB_NUMTOHEX( )

Post Reply
User avatar
goosfancito
Posts: 1955
Joined: Fri Oct 07, 2005 7:08 pm

Que tipo de dato devuelve HB_NUMTOHEX( )

Post by goosfancito »

Estimados,

Que tipo de dato ( valtype() ) devuelve HB_NUMTOHEX( 33 ) devuelve un string, intenger, doble?

Gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

string
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
goosfancito
Posts: 1955
Joined: Fri Oct 07, 2005 7:08 pm

Post by goosfancito »

Perfecto y gracias,

Ahora, si yo mando asi Comando( hb_numtohex( 101 ) ), me decis que la funcion comando recibiria un string con el correspondiente valor hexadecimal.

Si envio asi: Comando( 0x65 ) que tipo de dato recibe Comando? sigue siendo string?
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
VeRCE
Posts: 219
Joined: Fri Nov 04, 2005 2:34 pm
Location: Mexico D.F.
Contact:

Post by VeRCE »

goosfancito wrote:Perfecto y gracias,
Ahora, si yo mando asi Comando( hb_numtohex( 101 ) ), me decis que la funcion comando recibiria un string con el correspondiente valor hexadecimal.
Si envio asi: Comando( 0x65 ) que tipo de dato recibe Comando? sigue siendo string?



Ahi ya no es String, ya es un valor hexadecimal.
Juan Carlos Salinas Ojeda
México. D.F.
-------------------------------------------------
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

> Ahi ya no es String, ya es un valor hexadecimal.

Cierto, un número.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply