trying to extract a slice

BlitzMax Forums/BlitzMax Programming/trying to extract a slice

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Local a$[3]
a[1] = "harry"
a[2] = "franky"
Local b$[3]
b[1] = "harry"
b[2] = "franky"
	
Local temp_a$[a.length]
Local temp_b$[b.length]
temp_a=a[1..2]	
temp_b=b[1..2]

Print "a length: "+a.length

Print a[1]
Print temp_a[0]
Print temp_a[1]

Print b[1]
Print temp_b[0]
Print temp_b[1]


I set up 2 arrays a[3] and b[3]
then I setup 2 more to hold some slices
temp_a[a.length] and temp_b[b.length]

but when I try to access temp_a[1] it doesnt seem to exist