?
Solved

TypInfo for TDbRadioGroup not working?

Posted on 1998-10-13
5
Medium Priority
?
255 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 160 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 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