Solved

TypInfo for TDbRadioGroup not working?

Posted on 1998-10-13
5
245 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
  • 3
  • 2
5 Comments
 

Author Comment

by:tomcorcoran
Comment Utility
Adjusted points to 35
0
 
LVL 7

Expert Comment

by:BlackMan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Glad I could help you...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Firewall issues 6 85
Delphi Form ownership 4 50
Delphi IDE crash without error message ... 7 59
select query - oracle 16 81
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now