Results 1 to 5 of 5

Thread: A stupid newbie question...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Location
    Cumbria UK
    Posts
    531

    A stupid newbie question...

    Afternoon,

    I've always meant to get into coding, but have never really had the time to invest. I'm having another attempt, and am working through the LScript manual. I'm a bit confused though.

    ON page 6 (I know, I havn't got far yet...) it says this:

    "LScript elements are all case sensitive, and that includes variables. This means that a difference in upper and lowercase text can mean two different variable names. Always keep this in mind when you write code, because a simple mistake in a character’s case can be a tough bug to track down.None of the following variable names are the same:

    cricket
    Cricket
    CriCKet
    Cricket"

    Now I have no problem understanding the point it's making, but I cannot for the life of me see the difference between the 2nd 'Cricket' and the 4th 'Cricket'. They both appear to have an uppercase 'C' and the rest in lower case. Is it a trick question, or am I being thick?

    Cheers,

    Derek

  2. #2
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    8,468
    2nd and 4th are the same.
    Error in the manual.

  3. #3
    Registered User
    Join Date
    Feb 2003
    Location
    Cumbria UK
    Posts
    531
    Phew.

    I had an uneasy sense I was missing something really obvious...

    Cheers!

  4. #4
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    8,468
    You could always put these strings to string comparing function in a script and check what the result is..

  5. #5
    Registered User
    Join Date
    Feb 2003
    Location
    Cumbria UK
    Posts
    531
    Quote Originally Posted by Sensei View Post
    You could always put these strings to string comparing function in a script and check what the result is..
    Great idea... I'll try that as soon as I know how to..

Bookmarks

Posting Permissions

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