Solved

TypInfo for TDbRadioGroup not working?

Posted on 1998-10-13
5
251 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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Error E2158 compiling with Delphi XE10 Seattle 2 127
creating threads in delphi 1 166
Create a path if not exists 7 109
How to Get Images From Server using App Tethering 11 42
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 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