# My Calculator Broke

Best Answer TeamFX , 09 February 2014 - 04: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

2 replies to this topic

### #1 somebody1234

somebody1234

• Members
• 51 posts

• Calculators:
Casio fxcg10
Casio fx-9860GII

Posted 09 February 2014 - 07: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 - 11:40 AM.

### #2 TeamFX

TeamFX

Casio Freak

• Members
• 131 posts
• Gender:Male

Posted 09 February 2014 - 04: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 Freak

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

• Calculators:
FX-502P, FX-602P, FX-603P,
fx-4000P, fx-7000G,
fx-4500P, fx-4800P
fx-5800P,
CFX-9850G,
CFX-9850GC PLUS
fx-9860G,
fx-9860G AU,
fx-9860G Slim
fx-9860GII SD,
fx-9860GII-2,
fx-9860GII-2 SD,
fx-CG20, fx-CG50,
fx-CP400
fx-9860GIII
fx-9750GIII
fx-7400GIII

Posted 12 February 2014 - 06: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