Stange indeed ! (also true on v2.99)

-----Message d'origine-----
De : Fran�ois Van Emelen [mailto:[EMAIL PROTECTED]
Envoy� : vendredi 14 novembre 2003 15:18
� : QL users list; Fran�ois Van Emelen
Objet : [ql-users] Sbasic and slicing



Hi all,
Could someone explain me this?

P1
100 a$="SMSQE"
110 b$=a$(4 to 3)
120 print b$,len(b$)

Line 120 prints an empty string with length 0.

P2
100 a$="SMSQE"
110 b$=a$(4 to 2)
120 print b$,len(b$)

Line 120 returns the error 'unacceptable array index list'

Question: Why doesn't P1 return the same error as P2?

Any ideas?
Fran�ois Van Emelen
        • ... Dilwyn Jones
          • ... "Phoebus R. Dokos (Φοίβος Ρ. Ντόκος)"
          • ... Dave P
            • ... "Phoebus R. Dokos (Φοίβος Ρ. Ντόκος)"
            • ... "Phoebus R. Dokos (Φοίβος Ρ. Ντόκος)"
          • ... Bill Waugh
          • ... Marcel Kilgus
  • ... P Witte
  • ... Claude Mourier 00
  • ... RWAPSoftware
    • ... Robert Newson

Reply via email to