- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to set a pointer to a member-variable of a structure?
how?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, It is possible. The elements of the structure need to be defined as a derived type. A pointer is then declared as that type. If your structure is an array of these derived types, the simply assign the (already declared Pointer) to the element you want. You probably need to define a target,. such as the array.
Regards,
Keith
P.S. I am often wrong, but my reply should generate messages correcting me.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page