Using Dictionary in Parameters?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-12-18
01:05 AM
- last edited on
‎2021-09-14
01:33 PM
by
Noemi Balogh
Can we display the contents?
How do we to edit these values?
I can't access this type of variable in my objects.
- Labels:
-
Library (GDL)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-12-18 11:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-12-18 12:15 PM
So, Dictionary values... these seem to be useless in the Parameter list. You can't assign a subkey value like _mydict.x as the "." is invalid in a parameter name and there is nowhere to actually enter a value. Can someone explain why Dictionary is listed as a Parameter type? Is this just incomplete programming?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-12-18 01:03 PM
(Which is a really great thing, ngl)
I can't see any other reason, tho.
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-01-05 09:21 AM
DGSketcher wrote:Hi DGSketcher,
So, Dictionary values... these seem to be useless in the Parameter list. You can't assign a subkey value like _mydict.x as the "." is invalid in a parameter name and there is nowhere to actually enter a value. Can someone explain why Dictionary is listed as a Parameter type?
There are a few limitations with dictionary parameters:
- defaults can't be set in the parameter list in the GDL editor. Parameter values can be set from the parameter script, which become default if you check the parameter script and save the object. Defaults can also be set in the parameter list of HSF source code.
- they can't be used on the UI as input
- they can't be used for editable hotspots
- they can't be shown in IES
- VALUES and LIBRARYGLOBAL commands don't work with dictionaries
The main use is for macros, where they aren't set by the user but some calculation.
Software Engineer, Library
Graphisoft SE, Budapest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-01-05 10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-01-08 11:27 AM
So I now have my working GDL object with a Dictionary full of useful arrayed values e.g. MyDict.Name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-01-09 01:21 PM
• in macro calls, dictionary type values can be sent to the macro if there is a dictionary type parameter on the receiving end,..." and with regards to REQUEST options, currently there is no request supporting dictionaries.