![]() ![]() when just putting a string inside of the addRow brackets, it works fine though. “there are more than one elements with this name and it is not clear to which one this refers: (element.Value(“name”))” The error I get with this exact code is something like Sql = "select ID,parentID,name from table_tags"ĭ.Value("ID") = rs.Field("ID").IntegerValueĭ.Value("parentID") = rs.Field("parentID").IntegerValueĭ.Value("name") = rs.Field("name").StringValueįor each element as dictionary in tagArray Can you help me maybe? static tagArray(-1) as dictionary //ID, parentID, name, desc, ordername, level Properties Property descriptions Key As Variant The entry's key. It is immutable and is not tied to the Dictionary it was created from, so subsequent updates to the Dictionary will not change the DictionaryEntry property values. Use ParseJSON and GenerateJSON for iOS apps. The DictionaryEntry class represents a single key-value pair in a Dictionary. Alternatively you can use the JSONItem class which you can manage data similarly to Dictionaries or Arrays. The second is to use GenerateJSON to create JSON from Dictionaries and Arrays. So good so far, this is the point were I keep getting errors and dont really know what to do… certainly a beginners mistake, but I cant get around it using google and the documentation. The first is to use ParseJSON to parse JSON text into Dictionaries and Arrays. ![]() Higher dimensional arrays can be populated via assignment statements. Usage result Array ( elementList) Notes Note Only one-dimensional arrays are supported by Array. I figured the “for each” function would be the way to go. Description Assigns a list of values to consecutive elements of a one-dimensional Array. The Next step is to show these items from the array in a listbox. I’m not really sure, but I think it worked so far. After spending some time on google I found the suggestion of an array of dictionaries, which I then tried to follow. I read that there is no way to do an “Array of Arrays”, as I did before. ![]() In the DB, there are items with 5 properties, like ID, parentID, name, etc. I am trying to do the following: I want to read from the database and populate an array with the information. A breakpoint shows me that the data is correct. I then do this : inQ.Append thisMsg which adds the data just fine to the dictionary array. In my code I have Dim thisMsg As New Dictionary which I use to build up my data. Hello guys, I’m new to xojo, but have some basic programming knowledge mainly from web languages. I have a WebPage with a propery defined as an array of Dictionaries (inQ). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |