Ver Mensaje Individual
  #1  
Viejo 06/06/07, 13:37:16
lhidalgo lhidalgo is offline
Junior Member
 
Fecha de Ingreso: jul 2006
Mensajes: 4
Question Cómo convertir un INTEGER a CHAR?

hola necesitaria convertir un numero entero a su correspondiente caracter ascii.

ej : tengo una variable entera con el 45 y lo quiero convertir a su correspondiente valor Acii que es '-' ( guion del medio )

probe con este codigo pero me tira un error al compilar .

"The length of "X" in bytes must be a multiple of the size of a Unicode "

data : i type i value 45.
data : x type x.
field-symbols : <fc> type c.
move i to x.
assign x to <fc> casting type c.
move <fc> to c.
write c.
Responder Con Cita