![]() 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 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. 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 The DictionaryEntry class represents a single key-value pair in a Dictionary. ![]() Can you help me maybe? static tagArray(-1) as dictionary //ID, parentID, name, desc, ordername, level 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. I figured the “for each” function would be the way to go. Tried Dictionary (Object (Array, Array (Object (Dictionary and every other combination I can think of. Higher dimensional arrays can be populated via assignment statements. The following code retrieves the entries in the Dictionary and populates an array of Variants: Var d As New Dictionary d.Value(1) '123' d.Value(2) '234' d. Usage result Array ( elementList) Notes Note Only one-dimensional arrays are supported by Array. The Next step is to show these items from the array in a listbox. Xojo does return Object () instead of Dictionary () in Variant from ParseJSON < > JohnMcKernon (John McKernon) November 19, 2020, 7:57pm 3 Alas, no luck. Description Assigns a list of values to consecutive elements of a one-dimensional Array.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. Hello guys, I’m new to xojo, but have some basic programming knowledge mainly from web languages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |