Thank you for your several interesting replies, to some of which I will respond.
@Craig, as I suggested in my first two posts, I am unable to lose the string other than by persuading both the Australian Stock Exchange and a $2Bn medical company to change their name and ticker. Otherwise, rest assured I would.
@dunbarx, I have been vaguely aware that Transcript / Revolution / LiveCode did this "forever". I found a specific recent reference on this page:https://downloads.livecode.com/livecode ... 0_dp_1.pdf Search for "Nan"
@SparkOut, that looks a satisfactory solution thank you. It should not affect speed much (and that is not a critical factor), and is clean in appearance and meaning.
Yes, it looks to be a bug. Out of curiosity, I tried the 'strictly' operator on my test code, as follows. Note I use AND first time and OR the second.
Code: Select all
put "NAN,HTH,$42.70" into inLine
put "NAN" into aCode
get ((aCode is strictly a string) and ((item 1 of inLine) is strictly a string))
answer "Both strings?" && it
if item 1 of inLine < aCode then
answer "NAN < NAN"
else
if item 1 of inLine = aCode then
answer "NAN = NAN"
else
answer "NAN > NAN"
end if
end if
get ((aCode is strictly an integer) or ((item 1 of inLine) is strictly an integer))
answer "Either an intteger?" && it