How to handle complex attributes (array of arrays) in newobject_sprintf ?

Mar 10, 2011 at 4:42pm

How to handle complex attributes (array of arrays) in newobject_sprintf ?

Hi,

I have 5.1.7 SDK, and I want to create dynamically from an external a
jit.cellblock
with call to
newobject_sprintf

My problem comes with attribute coldef :
“coldef” : [ [ 0, 40, 1, 1.0, 1.0, 1.0, 1.0, 1, 4177855.75, 4177855.75, 4177855.75, 1.0, -1, 2, 1 ], [ 1, 690, 1, 1.0, 1.0, 1.0, 1.0, 1, 4177855.75, 4177855.75, 4177855.75, 1.0, -1, 2, 1 ] ]

I don’t know how to pass this as an argument to newobject.
I found nothing in the SDK doc for such details, nor on the web.

parameter to newobject_sprintf is :
@maxclass jit.cellblock @colwidth 89 @rows 1 @patching_rect 53 284 314 103 @presentation 1 @vsync 0 @fontsize 11 @hscroll 0 @selmode 0 @cols 2 @rowheight 16 @presentation_rect 0 24 752 135 @selsync 0 @outmode 1 @coldef < >

How should I represent the value of coldef for newobject_sprintf

Or should I build a dictionary with sequences and then use dictionary_appendatomarray ?
And how to use it?
Because in the case of coldef, we have an array of array.
So, maybe a t_atomarray with inside other t_atomarray elements ?

If there is a way to represent this directly textually for newobject_sprintf, it could be more simple ?

Thanks for your help,
Best regards
K

#55437

You must be logged in to reply to this topic.