

' to process each of the returned values in the array. '*** Not Sure How *** right here but need a loop EventHandler Sub Open() dim c as CDPieChartMBS // The data for the pie chart dim data(-1) as double array (55.0, 18.0, 15.0, 12.0, 8.0, 30.0, 35. 'Need to handle valuelist as a string array System.DebugLog("-Value ("+results(0).Value(mykey).StringValue+")")Įlseif valuelist.Type = variant.TypeArray then If valuelist.Type = Variant.TypeString then With a wide array of features, you can accomplish many things that could take. System.DebugLog("Key (" + results(0).Key(i).StringValue + ")")ĭim valuelist as Variant = results(0).Value(mykey) GraffitiSuite Desktop Edition plugin and control collection for Xojo. 'System.DebugLog("Key (" + results(0).Key(i).StringValue + _ ' not zero since the key in element zero is always nil. 'Loop the keys value pairs starting with 1 L.SimpleBind("AD\" + Session.ServAcctID, Session.ServAcctPW)ĭim results() as Dictionary = l.Search(BaseDN, Scope, Filter) That all works but I just need to process the return values that are variant arrays.
#Xojo array code
Parts of the code below is essentially copied from the MBS LDAP demo program. I test for a returned dictionary array and treat it as an error elsewhere in the code after doing the MBS LDAP search.Ĭan somebody put the function above to re-cast the variant array to a string array in context in a little code where I would loop through the value array?

Xojo uses a proprietary object-oriented language.
#Xojo array software
of Austin, Texas for software development targeting macOS, Microsoft Windows, Linux, iOS, the Web and Raspberry Pi. Note that the dictionary returned is also an array of dictionaries (hence the subscript for results(0) below) but I don’t get but one dictionary returned (element zero). The Xojo programming environment and programming language is developed and commercially marketed by Xojo, Inc. I have that working but I cannot quite get my head wrapped around the solution mentioned by Will (above) in this thread to handle value arrays returned in the dictionary.Įssentially I have a loop with a set of keys in a dictionary returned by the MBS function but a few of the keys return values as variant arrays not just a simple string. I am attempting to use the MBS LDAP Search.
