MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 53

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 194
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 52
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
WordToStr(Counter, Message)
' Copies value of word Counter into string Message
5.2.1.3 ShortToStr – Converts short to string
Prototype
sub procedure ShortToStr(dim input as short, dim byref txt as char[6])
Description Parameter <input> represents numerical value of short type that should be converted to string; parameter <txt>
is passed by the address and contains the result of conversion.
Parameter <txt> has to be of sufficient size to fit the converted string.
Example
ShortToStr(Counter, Message)
' Copies value of short Counter into string Message
5.2.1.4 IntToStr – Converts integer to string
Prototype
sub procedure IntToStr(dim input as integer, dim byref txt as char[6])
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (11 sur 112)05/11/2004 02:20:52
Vista de pagina 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 193 194

Comentarios a estos manuales

Sin comentarios