Ditinguish between capital letters and small letters


Closed Thread
Results 1 to 2 of 2
  1. #1
    egds's Avatar
    egds Guest

    Default Ditinguish between capital letters and small letters

    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.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    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]





Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts