Using VB.NET (VS2005) with Uniobjects (IBMU2.UODOTNET)
The following code works fine, except when the select returns a list with
ONE item.
*****************************************************************
Public Function T4mGetSelectList(ByVal strCommand As String) As String()
Dim ECMD As UniCommand = Nothing
Dim slAP As UniSelectList = Nothing
Try
' Select list
ECMD = sess.CreateUniCommand()
ECMD.Command = strCommand & " TO 0"
ECMD.Execute()
slAP = sess.CreateUniSelectList(0) <------ This is where the
problem occurs
T4mGetSelectList = slAP.ReadListAsStringArray
*********************************************************************************************************
When the select finds one item, the ReadListAsStringArray returns Nothing.
When the select finds more than one item, the correct number of items is
returned. This has been verified by comparing to ECL selects. Does
ReadListAsStringArray have a problem with arrays of one?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/