Category:OxygenBasic: Difference between revisions
→Examples
m (Added link to official site) |
|||
Line 14:
'''Iteration:'''
<pre>
int i
string pr
for i=1 to 10
pr+="Line: " i chr(13
next
print pr
Line 24:
'''Function:'''
<pre>
function cube(double
return d*d*d
end function
Line 37:
string buf
'
method store(string
buf +=
end method
'
method find(string
a=instr 1,buf,
if a then
b=instr a,
return mid buf, b+1, c-b-1
end if
return "( "+key+ " not found )"
end method
'
Line 57 ⟶ 60:
MemoryBank b
b.store
b.store "ships","10 galleons"
▲sealing wax LC3
</pre>
|