Thank you!!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: loftcat on 2022-Sep-26Good guide for GLB HTML5, is good to know all this things.
...
TYPE MyType
a%=5
b%=8
name$="Hans"
// assign properties
function Init: _a%, _b%, _name$
self.a = _a
self.b = _b
self.name$ = _name$
endfunction
// write element to file
// file must be opened for write
function SaveToFile: file%
writeword file, self.a
writeword file, self.b
writeline file, self.name$
endfunction
// load the element from file
// file must be opened for read
function LoadFromFile: file%
readword file, self.a
readword file, self.b
readline file, self.name$
endfunction
ENDTTYPE
// declare list of TYPEs
local mylist[] as MyType
dim mylist[3]
// fill mylist with elements
mylist(0).Init(1, 22, "Fist")
mylist(1).Init(2, 33, "Second")
mylist(2).Init(3, 44, "Third")
// save the list to a file
Openfile(1, "mylist.dat", FALSE)
For elem in list[]
elem.SaveToFile(1)
Next
Closefile 1
Quote from: Bluepixel on 2019-Dec-11
@Ian Price
Thanks a lot!
I will soon be getting a WIZ and seeing if I can get this all to work, I am wondering however, is there anything I need to keep in mind
when compiling to the WIZ? Or is it just like creating a desktop application?
Quote from: Bluepixel on 2019-Dec-07
@yoxola
I have tried almost all v15 compilers and up until now, none of them worked.
I have also tried compiling to Raspberry Pi, however this too did not work, i got a couple of error running the .bin file, but after installing GLES, SDL, SDL2 and OpenGL i was still stuck on the same error.