MikroElektronika PIC Microcontrollers PIC16 Arkusz Danych Strona 53

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 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
Przeglądanie stron 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 193 194

Komentarze do niniejszej Instrukcji

Brak uwag