![]() ![]() 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 I came up with 4 options but not sure which one would be fastest to search through etc. Can you help me maybe? static tagArray(-1) as dictionary //ID, parentID, name, desc, ordername, level I have an issue where I need to hold product information with a lookup using a SKU code so I was thinking about using a dictionary or an array and then thought maybe a class would be better but now I am feeling totally confused. That Dictionary is being used in the GUI to show it’s containing data. The Dictionary then contains other Dictionaries and a lot of instantiated objects. 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 have a situation where some complex structure is built (in the background) and it’s result is represented in a Dictionary. I figured the “for each” function would be the way to go. 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. Properties Property descriptions Key As Variant The entry's key. Regarding cycling through the entire bin looking for non-nil values, you could create a helper array were you append the indices of the bin occupied slots. ![]() 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. What it ensures is to have the Keys and Values in-sync (as long as the Dictionary is not modified of course). After spending some time on google I found the suggestion of an array of dictionaries, which I then tried to follow. The DictionaryEntry class represents a single key-value pair in a Dictionary. 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. Description Assigns a list of values to consecutive elements of a one-dimensional Array. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |