On Oct 1, 2012, at 8:58 AM, Aparajita Fishman wrote:
>> Been so long since I did any 4D, but did a lot of this also. Don't think you
>> can call Sum(series) with execute in 4D since it requires a field variable.
>> Just write a simple 4D method and call from Active4D, say fld_sum(fld_ptr).
>> Something like:
>
> 'execute in 4d' works fine, no need for a 4d method:
>
> $total := execute in 4d("sum([ingredients]price)"; *)
Not the first time I've been wrong - you know I don't know much about the 4D
language.
I guess most of my usage of execute in 4d was with variable substitution, like:
$cmd := 'PDF Load Font(%d;"%s";"%s";"%s")' % ($vl_PDFRef;$font ;$type
;$opt)
$vl_FontRef:=execute in 4d($cmd;*)
I could never figure out how to pass a pointer or an array using execute in 4D.
It probably dawned on me at some point that 4D was just compiling/interpreting
a string, I just forgot about it or the forest was blocked out by the trees. If
I had process variables for the pointer or string, it would probably have
worked.
Steve
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/