PDA

View Full Version : Ditinguish between capital letters and small letters



egds
- 14th September 2004, 12:16
It wanted how to do so that PIC BASIC PRO distinguishes between Capital letters and small letters. I need to distinguish for example one A and one a. Some solution?

Thanks.

Melanie
- 14th September 2004, 13:13
PBP does not disntigush between upper or lower case.

example...

MyVaR var BYTE
MYVAR=5
LCDOut $FE,1,#myvar

This is all quite valid... MyVaR, myvar and MYVAR is all regcognised as the same variable. The same applies to labels...

StartHere:
starthere:
STARTHERE:
StArThErE:

... again all are recognised as being the same label.

At this time you cannot change the way the PBP compiler parses your source code.

Naturally, PICBasic DOES distinguish between UPPER and lower case when we talk about data and variables. For example...

SERIN2 1,16780,[WAIT(“A”),B0]

is not the same as...

SERIN2 1,16780,[WAIT(“a”),B0]