tboldt <[EMAIL PROTECTED]> writes:
> The argument which is of the wrong type is the list of children
> obtained from the call to 'gnc:account-get-children' in p2.  The
> error message states simply that the argument is of the wrong type -
> it doesn't say what type is expected or what type is used in the
> call.

map wants a procedure as its first arg and a list as its second arg. 

Your problem is that gnc:account-get-children doesn't return a list.
Under the hood, it maps to a C function which returns a vector, and
that return value is mapped to a special Scheme type called a
'pointer-array'.  You need to use the function 'pointer-array-ref'
(similar to vector-ref) to get access to an element.

Good luck!

Bill Gribble

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to