Solved

TypInfo for TDbRadioGroup not working?

Posted on 1998-10-13
5
253 Views
Last Modified: 2010-04-03
When the activecontrol is TDbRadioGroup propInfo returns nil in the following code. But this works for all my other DB controls. Why is this?

//  PropInfo: PPropInfo;
propInfo:= Typinfo.GetPropInfo(activeCtrl.ClassInfo, 'DataField');

Thanks, Tom.
0
Comment
Question by:tomcorcoran
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:tomcorcoran
ID: 1342748
Adjusted points to 35
0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1342749
In D4, if I do this
  PropInfo:= GetPropInfo(DBRadioGroup1.ClassInfo, 'DataField');
PropInfo is not nil afterwards. Could it be that it is not the RadioGroup that is the active control, but rather the RadioButton?
0
 

Author Comment

by:tomcorcoran
ID: 1342750
Blackman,

Brillant. I now do a check as follows:

   if activeCtrl is TRadioButton then
      ctrl := activeCtrl.Parent
   else
      ctrl := activeCtrl;

GetPropInfo(activeCtr.ClassInfo ...

Please answer so I can grade. Thanks a million,

Tom.

0
 
LVL 7

Accepted Solution

by:
BlackMan earned 40 total points
ID: 1342751
In D4, if I do this
  PropInfo:= GetPropInfo(DBRadioGroup1.ClassInfo, 'DataField');
PropInfo is not nil afterwards. Could it be that it is not the RadioGroup that is the active control, but rather the RadioButton?

0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1342752
Glad I could help you...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question