Jump to content



Photo
- - - - -

My Calculator Broke


Best Answer TeamFX , 09 February 2014 - 05:36 PM

Yes, if you want to match strings, you normally use Not StrCmp(...) or StrCmp(...)=0
Results less or greater than zero are useful for creating an alphabetical index as they indicate whether a string appears before or after a specifc word. Go to the full post


  • Please log in to reply
2 replies to this topic

#1 somebody1234

somebody1234

    Casio Addict

  • Members
  • PipPipPip
  • 51 posts

  • Calculators:
    Casio fxcg10
    Casio fx-9860GII
    Casio Classpad 400

Posted 09 February 2014 - 08:24 AM

The StrCmp( command is not working.
It was working the last time I tried.
Does anyone know what happened?
EDIT: When the strings match, StrCmp( outputs 0. Is this meant to happen?

Edited by somebody1234, 09 February 2014 - 12:40 PM.


#2 TeamFX

TeamFX

    Casio Freak

  • Members
  • PipPipPipPip
  • 108 posts
  • Gender:Male

Posted 09 February 2014 - 05:36 PM   Best Answer

Yes, if you want to match strings, you normally use Not StrCmp(...) or StrCmp(...)=0
Results less or greater than zero are useful for creating an alphabetical index as they indicate whether a string appears before or after a specifc word.

#3 Krtyski

Krtyski

    Casio Addict

  • Members
  • PipPipPip
  • 75 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, fx-603P, fx-4500PA, 2x fx-5800P, fx-9860GII-2(SH4A) and fx-cg20.

Posted 12 February 2014 - 07:02 AM

When the retuen of StrCmp is 0, it means FALSE. If it's not 0 that means TRUE.


If StrCmp(...)
Then
[process in case of TRUE]
Else
[process in case of FALSE]
IfEnd




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users