In a message dated 14/11/2003 14:52:15 GMT Standard Time, [EMAIL PROTECTED] writes:
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?
Yes, you are right - both should return the error "unacceptable array index list".  Why the odd behaviour on the first example, I have no idea - it happens in v3.03 BTW
 
--
Rich Mellor
RWAP Services
35 Chantry Croft, Kinsley, Pontefract, West Yorkshire, WF9 5JH
TEL: 01977 610509
Visit our website at:
URL:http://www.rwapsoftware.co.uk

In need of adventure?
URL: http://www.rwapadventures.com


Stuck with ordinary dial up internet connection ??

Read our review of internet accelerators and broadband at:
URL:http://www.rwapservices.co.uk
          • ... "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