On Oct 1, 2012, at 6:49 AM, Aparajita Fishman wrote:

>> Reference to an undefined variable or value
> 
> Active4D is trying to tell you that the Sum command is not implemented in 
> Active4D. Remember that Active4D does not directly implement every 4D 
> command. There is a list of implemented 4D commands in the docs.
> 
> 4D commands that are not implemented within Active4D can in many cases be 
> executed with the 'execute in 4d' command.


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:

  ` Parameters 
C_POINTER($1;$pNumericField)
C_REAL($0;$rSum)
$pNumericField:=$1
$rSum:=0
$rSum:=Sum($pNumericField->)
$0:=$rSum


Steve
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to