M
MarkS
Hi,
this piece of code give a wrong answer
? Test
Dec 05 SFE NSW Base
if Strcomp(Test,"Feb") = true then ? "True" Else ? "Not"
True
if Strcomp(Test,"ASX") = true then ? "True" Else ? "Not"
Not
The word 'Feb' is not in the string but it returns a true
answer. If you try the word 'ASX' it returns false.
WHY and how do you fix it
Thanks MarkS
this piece of code give a wrong answer
? Test
Dec 05 SFE NSW Base
if Strcomp(Test,"Feb") = true then ? "True" Else ? "Not"
True
if Strcomp(Test,"ASX") = true then ? "True" Else ? "Not"
Not
The word 'Feb' is not in the string but it returns a true
answer. If you try the word 'ASX' it returns false.
WHY and how do you fix it
Thanks MarkS