Good Morning,
I am using UniObjects.NET and seem to have an issue with the select statement. I am on an hp-ux machine running version 7.2.0, although this also happens with Windows machines and version 6.1 I have the following c# code /// <summary> /// Select all records in a file /// </summary> /// <param name="u2File">File pointer used for the select</param> /// <param name="itemIDList">String Array of item ids selected</param> /// <returns>True if selected ran ok, otherwise false</returns> public bool SelectFile(UniFile u2File, out string[] itemIDList) { try { UniSelectList uSelect = this.session.CreateUniSelectList(0); uSelect.Select(u2File); string[] itemIDList = uSelect.ReadListAsStringArray(); if (itemIDList == null) { string askey = uSelect.Next(); itemIDList = new string[0]; } return true; } catch (Exception e) { itemIDList = new string[0]; return false; } } If there are multiple records in the file, the item ID list comes back with the correct number of item IDs. However, if there is only one record in the file, the item ID list compes back as null. I cannot see a work around. I have tried the Next() and ReadList() methods, both with the same results. Anyone out there see the same behavior? And, is there any way to get around it? Thanks in advance! Doug Farmer -------------------------------------------------------- This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not represent the views of Epicor Software Corporation or any other company within its group. This message has been scanned for malware by Websense. www.websense.com _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users