Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
To get the selected item of TRadioGroup
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
TSpeedButton qt6 styleshe...
by
big_M
[
Today
at 04:53:29 pm]
How to prevent onDropFile...
by
Hansaplast
[
Today
at 04:51:23 pm]
The compiler fails to war...
by
Martin_fr
[
Today
at 03:53:06 pm]
Linked List Using Two Cla...
by
Thaddy
[
Today
at 03:39:08 pm]
Lazarus seems to be makin...
by
Nicole
[
Today
at 03:28:35 pm]
Maze Makers: Now looking ...
by
Thaddy
[
Today
at 02:51:41 pm]
unit init, finalize and i...
by
Zvoni
[
Today
at 02:48:57 pm]
Embedded qss stylesheets ...
by
big_M
[
Today
at 01:01:30 pm]
Lazreport PDF
by
mig-31
[
Today
at 11:54:11 am]
Locate current record aft...
by
Zvoni
[
Today
at 09:59:08 am]
Drag and Drop Files; onDr...
by
Hansaplast
[
Today
at 09:39:25 am]
Lazarus and Libre Office
by
MarkMLl
[
Today
at 09:22:14 am]
CudaText editor (written ...
by
AlexTP
[
Today
at 08:51:13 am]
scat bikes (inc)
by
speter
[
Today
at 04:38:11 am]
Effect of adding properti...
by
n7800
[
Today
at 04:13:36 am]
solution for installing F...
by
BradleySlavik
[
Today
at 02:37:22 am]
What was your first compu...
by
CM630
[January 13, 2026, 10:09:19 pm]
Dragging files to .app no...
by
Boleeman
[January 13, 2026, 10:06:09 pm]
PngDrop: Reduce the size ...
by
Boleeman
[January 13, 2026, 09:50:19 pm]
Fantasy Worldbuilder; Pro...
by
Boleeman
[January 13, 2026, 09:45:56 pm]
StrToDateTime problems
by
Nicole
[January 13, 2026, 07:45:13 pm]
How to forward a Class in...
by
Hartmut
[January 13, 2026, 07:41:31 pm]
Additional Filedialog opt...
by
Hansaplast
[January 13, 2026, 07:39:28 pm]
set zero values not to b...
by
wp
[January 13, 2026, 05:58:41 pm]
Fast Canvas Library V1.05...
by
Gigatron
[January 13, 2026, 05:15:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: To get the selected item of TRadioGroup (Read 3718 times)
asdf
Sr. Member
Posts: 310
To get the selected item of TRadioGroup
«
on:
December 02, 2010, 05:37:13 pm »
sp1, sp2, sp3 : string;
RadioGroup1.Items.Add(sp1);
RadioGroup1.Items.Add(sp2);
RadioGroup1.Items.Add(sp3);
How can we get
the caption
of the selected item?
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
theo
Global Moderator
Hero Member
Posts: 1933
Re: To get the selected item of TRadioGroup
«
Reply #1 on:
December 02, 2010, 05:49:36 pm »
Code: Pascal
[Select]
[+]
[-]
var
idx
:
integer
;
begin
idx
:
=
RadioGroup1
.
ItemIndex
;
if
idx>
-
1
then
Caption
:
=
RadioGroup1
.
Items
[
idx
]
;
end
;
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
To get the selected item of TRadioGroup
TinyPortal
© 2005-2018