bmObject

bmObject is the main object for all other classes

 

follow main functions are available

function

description

arrayElement (long line, string batch, any object)

is executed, if parser read the "["
it must return the object of this array element

constructur(any arguments[])

execute the constructore
in argument array all arguments inside from () of costructur call

example

var mydate=new date(2020,2,3)

in this case you've 3 arguments from type number

string=get()

must return the current value as string

interface(long line, string batch, any result)

executed from parser after objectname.xxx

Pointer is on first x after the point

must return the result as any

int=of_parse(long line, string batch)

Executed from parser after [ or {

example

var myArry={1,3,4]
Pointer is after [ or {
After call the pointer must be after ] or } and return 1=ok or -1 as error

read(as_format,as_returntype)

Read the object

store(aa_store)

Store/write the object

toString

Return the current value from object as string