In Delphi 2010 is there a way to iterate through any kind of indexed property (like Pages of TPageControl, for example)?
Iterate through indexed property in Delphi 2010
848 Views Asked by Rafael Piccolo At
2
There are 2 best solutions below
0
Michael
On
If I understand you correctly, you want to iterate through these properties via RTTI without knowing anything about the property and its index-values. Because valid index-values must not be a sequence of integer-values this can't be possible. There might be properties with string-indexes or with object-references as index-value. And there is no mechanism in RTTI to query valid index-values wich could be used for an iteration.
Related Questions in DELPHI
- How can I read the header of request to webserver
- Receiving Notifications for Individual Task Completion OmniThreadLibrary Parallel.ForEach
- Delphi - How to get result of function from QuickReport without viewing a report?
- Out of memory while adding documents to a Firebird BLOB field with Delphi
- How to MakeScreenshot fullpage on Delphi
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- How to Dynamically Add Controls to Delphi Form
- How to write a string in Stringrid with DelimitedText in FMX Delphi 11
- TGrid/TStringGrid multi cell selection / multi editing in delphi firemonkey (12)
- How to localize "Today" in the Delphi TMonthCalendar?
- How can I call a SOAP webserver method in Vue.js?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Delphi can not compile the unit create by its "XML Data Binding Wizard"
- Save Form Properties in File and then restore those Properties after reopening
- Is it possible to open a blob without saving it to file
Related Questions in PROPERTIES
- The Selenium application properties folder holds two environment options. After running a test the environment setting changes to a previous setting
- Inconsistency in lazy variable initialization between static and instance properties in Swift
- How to convert from Java ASCII properties to UTF8 (Java 9) properties
- Conditional Property After Powershell Left Join
- Inheritance - is it possible to 'force' variable values relative to the derived class?
- How to use an imported Excel file inside Anylogic model
- TinyMCE custom toolbar button to set CSS property of selected text
- Missing Properties
- I am trying a display items (events) from db typescript nestjs using handlebars the events are an array of object. Properties of each object undefined
- How to transform a flat form-specific data-structure into a nested one?
- C# How do I Create and Reference Multiple Globally Accessible Objects?
- powershell array of object with dynamic properties outputs only properties from first element
- Swift protocol extensions and immutable properties
- Object property has different many string values
- I created a dice cube model using a tutorial and i would like to expoert the subdivision holes as properties to unity3d. how can i do it?
Related Questions in RTTI
- Why does Delphi add a blank field to the end of every TObject instance?
- Access to TRTTIField.FieldType within classes when the array type is created ad-hoc
- Conflict between TMenuItem and TActionList shortcuts
- How to retrieve the correct constructors of a class using RTTI?
- How to remove unit names from Delphi executables
- How to compare two RTTI type descriptors equality?
- Does Android Studio support simulations with RTT for FTM?
- Is that possible to upcast erased type without RTTI?
- Enum to String with Delphi LiveBindings
- Delphi RTTI 'Invalid class typecast' when assigning property of record type
- Finding derived object in a vector of base
- TRttiField.GetValue does not give the correct value
- How to recognize a Cardinal type in the array of const?
- error: cannot use ‘typeid’ with -fno-rtti
- Custom destruction and deallocation of new'd object
Related Questions in INDEXED
- Move address to register by using the indexed addressing mode
- How to turn an array of values into another indexed array?
- C# - get number of a website indexed page in google?
- typo3 indexed search Is it possible to show access-restricted pages in typo3 to non-logged-in users?
- Yahoo indexed pages script
- Iterate through indexed property in Delphi 2010
- C#: Dictionary indexed by List
- Indexed but blocked by robots.txt on my english cart
- How to index an array?
- Grails indexed parameters
- Alphabet Indexed ListView Without a cursor
- Indexed list for table view shows dot iOS 5+
- Crop an indexed PNG with ImageMagick and keep the same palette as the input file
- Indexed View Schemabinding
- SharePoint list column header filter not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No, this is not possible, as there is not standard pattern that:
That's why certain classes have enumerators: it is the pattern that tells the for ... in statement how to enumerate it.
What you can do however is a best estimate:
Finally, it is possible to "retrofit" TPageControl with a GetEnumertor using class helpers (or record helpers if the underlying type is a record).