Oxygen Basic
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest OxygenBasic.zip at GitHub
(Click on the Wizard)
Home
Help
Search
Login
Register
Oxygen Basic
»
Programming
»
Problems & Solutions
»
SpanOf
« previous
next »
Print
Pages: [
1
]
Author
Topic: SpanOf (Read 1939 times)
0 Members and 1 Guest are viewing this topic.
Peter
Guest
SpanOf
«
on:
August 11, 2014, 03:19:19 PM »
Deleted
«
Last Edit: May 05, 2015, 11:16:58 AM by Peter
»
Logged
Charles Pegge
Guest
Re: SpanOf
«
Reply #1 on:
August 11, 2014, 10:06:23 PM »
Hi Peter,
Yes, off by a factor of 10! I'll investigate.
This will dimension correctly:
sys a[] = {0,1,2,3,4,5,6,7,8,9}
or
sys a = {0,1,2,3,4,5,6,7,8,9}
Fixed:
http://www.oxygenbasic.org/o2zips/Oxygen.zip
«
Last Edit: August 11, 2014, 10:42:07 PM by Charles Pegge
»
Logged
Charles Pegge
Guest
Re: SpanOf
«
Reply #2 on:
August 12, 2014, 01:34:51 AM »
No, it only works on the original static array. You will need to pass this information to the procedure accessing the array.
Logged
Charles Pegge
Guest
Re: SpanOf
«
Reply #3 on:
August 12, 2014, 05:39:26 AM »
Alternatively, you can store size, and other information in unused elements.
negative indexbases are possible:
indexbase
-1
% size 100 'span=102
sys a[size] : a[
-1
]=size
Logged
Print
Pages: [
1
]
« previous
next »
Oxygen Basic
»
Programming
»
Problems & Solutions
»
SpanOf