Recent posts

#1
OxygenBasic / Re: Array Ubound problem
Last post by Zlatko Vid - Today at 06:49:05 PM
and for what is spanof()

ahh yes ...spanof() seems that work  ;)
ye i remember, i use it few times .

'quick test
int arr[1000]

print spanof(arr)
#2
General Discussion / Re: Paul Squirres going to ret...
Last post by Zlatko Vid - Today at 06:48:02 PM
Quotedatabase projects.
then okay  :)
#3
OxygenBasic / Re: Array Ubound problem
Last post by Charles Pegge - Today at 05:41:57 PM
Indexbase can be  read as well as set:
print indexbase

sizeof only works for elements, not arrays in o2
#4
I see it is complete with source code and public license. It is built around sqlite3, so it could be very useful in database projects.
#5
microA Interpreter / VERSION 12
Last post by Zlatko Vid - Today at 04:21:42 PM
First release of micro(A) with UserDefinedFunctions
 :)

both Code editor and interpreter compiled with o2-SC 604
#6
OxygenBasic / Re: Array Ubound problem
Last post by Zlatko Vid - Today at 04:16:31 PM
QuoteHow do yo ufind out if the Array is 0-based or 1-based and how large it is?

easy
indexbase ..you define yourself
sizeOf() return array size
#7
General Discussion / Re: Paul Squirres going to ret...
Last post by Zlatko Vid - Today at 04:13:46 PM
so you suggest to download forum
ziped 1.5MB...

may i ask why ?
#8
3 hours, epic!


How AI was Stolen

Then & Now
2 may 2024


#10
OxygenBasic Examples / Array redim example
Last post by Frank BrĂ¼bach - Yesterday at 07:23:40 PM
Hello all

Here a little Array redim example

' array index redim example, by frank bruebach
' oxygen basic
'
indexbase 1

DIM MyArray(10) AS INTEGER '1 TO 10
DIM i AS INTEGER

' Fill the array with some values
FOR i = LBOUND(MyArray) TO UBOUND(MyArray)
    MyArray(i) = i * 10
NEXT i

' Display the values in the array
FOR i = LBOUND(MyArray) TO UBOUND(MyArray)
    print "MyArray(" + STR(i) + ") = " + STR(MyArray(i))
NEXT i

' Re-dimension the array to have 15 elements
REDIM integer MyArray(15) '1 to 15


' Fill the new array elements with some values
FOR i = UBOUND(MyArray) - 4 TO UBOUND(MyArray)
    MyArray(i) = i * 5
NEXT i

' Display the values in the re-dimensioned array
FOR i = LBOUND(MyArray) TO UBOUND(MyArray)
    print "MyArray(" + STR(i) + ") = " + STR(MyArray(i))
NEXT i