> Le 28 janv. 2017 à 19:07, Lee Hinde <[email protected]> a écrit :
> 
> In my case I am flattening out c_objectc/fields. By definition I don’t know 
> how many keys will be in whatever I’m finding. So I have to pre-declare my 
> best guess + 10 to have them ready.
> 
> I think. There isn’t a way to do this in real time, is there?

In that case I use 2d arrays of various types, one by field type. 

Let's say for example you have these fields: 1 alpha, 1 text, 1 real, 2 long. 
  array text($_a2t;2;0)  //1 alpha + 1 text
  array real($_a2r;1;0)  //1 real
  array long($_a2l;2;0)  //2 long

Schematically, for a given type of field, the code must add a column to the 
corresponding 2D array type, and set that column as the field target when 
you'll execute STA. Not the same situation, but same principle here:
<http://forums.4d.fr/Post/FR/16012106/1/16033165#16033090>
- lines 45..50 = 2D arrays we may need
- lines 87..115 = add a column to the array of the wanted type 

-- 
Arnaud de Montard 


**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to