Guillaume Yziquel a écrit :
Fabian Groffen a écrit :
I'm looking for equivalents of fname and fnumber methods in MAPI. Couldn't find an equivalent. So, is there a way, when you get the result of a query, to get the names of the fields in the result? Did you check mapi_get_field_count and mapi_get_table, mapi_get_name, mapi_get_type and mapi_get_len?
Ok, I admit they are actually not documented at all, not even in the code.
Yes. I discovered them late last night by looking at the php bindings. Page 225 of m5manual.pdf. For instance
The MAL statement 'io.print(1);' returns a table, with one column, but whose only field does not have a name. What should I choose a MAL statement to be, if I want a similar result, but with a named field? All the best, -- Guillaume Yziquel http://yziquel.homelinux.org/