galagast
11-23-2005, 09:18 AM
struct person (name,age)
j1 = person "joe" 20
j2 = person "jill" 19
jj = #(j1,j2)
persistent global jj
persistent global person
Hi, im trying to make this work.
I would want my struct definitions to stay persistent for specific max files.
It seems that if I was to reopen the file, the definitions would become undefined, thus giving me: jj = #(undefined, undefined)
Although right now im leaning towards using direct access through arrays by index, it would have been a lot much easier (and readable) to access those array items by property..
j1 = person "joe" 20
j2 = person "jill" 19
jj = #(j1,j2)
persistent global jj
persistent global person
Hi, im trying to make this work.
I would want my struct definitions to stay persistent for specific max files.
It seems that if I was to reopen the file, the definitions would become undefined, thus giving me: jj = #(undefined, undefined)
Although right now im leaning towards using direct access through arrays by index, it would have been a lot much easier (and readable) to access those array items by property..
