Hello everybody,
I'm new to BMax and about to convert my old projects to BMax syntax. In the moment I'm stucking with my old BBTypes that cannot be converted properly with "BB Import".
I've set up my own type
and need to use it as an array:
The compiler reports: "Expecting expression but encountered ':'"
Any suggestion how to dow it the right way? I don't have the Max-logic yet.
Many thanks in advance
Simon
Uups: Wrong forum, please move!
I'm new to BMax and about to convert my old projects to BMax syntax. In the moment I'm stucking with my old BBTypes that cannot be converted properly with "BB Import".
I've set up my own type
Type fld Field type,name$ End Type
and need to use it as an array:
Local f[fldnum] 'fldnum is something between 1 to 100 For x=0To fldnum 'here's my problem: I want to save data from a file to my custom type, but doesn't work :( f[x]:typ=ReadByte(file) f[x]:name=ReadString(file) Next
The compiler reports: "Expecting expression but encountered ':'"
Any suggestion how to dow it the right way? I don't have the Max-logic yet.
Many thanks in advance
Simon
Uups: Wrong forum, please move!