Re: First letter of dir() result

new topic     » goto parent     » topic index » view thread      » older message » newer message
alrobnett said...
if language_files[language_nmbr][D_NAME] < 'A' 

atoms are always less that sequences, and 'A' is an atom.
Logically, at least, if you had said <"A" (or >="A") instead, things might have worked out better.

However, another problem on OE (not on phix) is that you cannot use < (or >=) on non-equal length sequences, and when they are equal-length, you get a (nested) sequence of true/false which cannot be used in a if-test. Instead you must code:

if compare(language_files[language_nmbr][D_NAME],"A")<0 then 

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu