[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Change items in RadioGroup?

Posted on 1998-04-11
3
Medium Priority
?
267 Views
Last Modified: 2010-04-06
How can I change (dynamic) the items in a RadioGroup? I want to do this in the program itselve.
Thanx very much.
Stefan van Roosmalen
roosiedb@worldaccess.nl
0
Comment
Question by:roosiedb
3 Comments
 
LVL 4

Expert Comment

by:itamar
ID: 1361409
Hi Stefan

What do you mean by change the items ? Its caption, number of items, what ?

Give us more details, so we can help further.

Regards,
Itamar
0
 

Author Comment

by:roosiedb
ID: 1361410
When you have the next radiogroup:

choose options:
O  turn off computer
O  turn off monitor
O  turn off screensavers

and you want to change the "turn OFF screensaver" into "turn ON screensavers" how do you do that?
0
 
LVL 5

Accepted Solution

by:
inter earned 40 total points
ID: 1361411
Hi,

Assume we have a radio group named RG. To add the items in run time:
RG.Add('turn off computer');
RG.Add('turn off monitor');
RG.Add('turn OFF screensavers');
To change, say, the 3rd item in run time:
RG.items[2] := 'turn ON screensavers';

Regards,
Igor
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Integration Management Part 2
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month18 days, 1 hour left to enroll

830 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