I apologize if I was misleading you. The variables in question were in arrays during my test (cut and paste from the EDOCS actually), and as I stated, the function works fine if the acctyp is set to 1. ############################## Jason Ewasiuk C.E.T. Software Developer Systems Department Matrikon Suite 1800, 10405 Jasper Avenue Edmonton, Alberta Canada T5J 3N4 Phone: 780.448.1010 ext. 4522 Fax: 780.448.9191 mail: jason.ewasiuk@xxxxxxxxxxxx web: www.matrikon.com ############################## -----Original Message----- From: Johnson, Alex (Foxboro) [mailto:ajohnson@xxxxxxxxxxx] Sent: Friday, June 07, 2002 8:20 AM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] FoxAPI questions Re: an_add_objects The call to an_add_objects uses arrays: So, nument = 1 name = "JASON1:CALCA01.RI01" acctyp = 2 rdelta = 2.0 rsr = 2 wdelta = 0 should be something like char name[32]; int acctyp[1]; float rdelta[1]; float rsr[1]; float wdelta[1]; nument = 1 strncpy(name, "JASON1:CALCA01.RI01", 32); acctyp[0] = 2 rdelta[0] = 2.0 rsr[0] = 2 wdelta[0] = 0 **************************************************************************** * READER BEWARE: Unencrypted, unsigned Internet e-mail is inherently insecure. Internet messages may be corrupted, incomplete, misdirected or may incorrectly identify the sender. Therefore, nothing in this message or attachments may be considered legally binding. THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY BE PRIVILEGED. If you are not the intended recipient or their authorized agent, you may not forward or copy this information and must delete or destroy all copies of this message and attachments received. If you have received this communication in error, please notify Matrikon Inc. by telephone at (780) 448-1010. **************************************************************************** * _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave