Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
Dec(Aaaa) ' decrements variable Aaaa by 1
5.1.12 Length – Returns length of string
Prototype
sub function Length(dim Text as string) as byte
Description Routine returns length of string <Text> as byte.
Example
Length(Text) ' returns string length as byte
5.2 Library Routines
A comprehensive collection of functions and procedures is provided for simplifying the initialization and use of PIC MCU and its
hardware modules. Routines currently includes libraries for ADC, I2C, USART, SPI, PWM, driver for LCD, drivers for internal
and external CAN modules, flexible 485 protocol, numeric formatting routines…
5.2.1 Numeric Formatting Routines
Numeric formatting routines convert byte, short, word, and integer to string. You can get text representation of numerical value by
passing it to one of the routines listed below.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (9 sur 112)05/11/2004 02:20:52