Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optiongroup
Message
From
06/12/2016 00:00:09
 
 
To
05/12/2016 20:18:22
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01644520
Message ID:
01644534
Views:
71
This message has been marked as the solution to the initial question of the thread.
>Dear Experts, I have this data
>
>
>CREATE CURSOR table1(sno n(2),names c(10))
>INSERT INTO table1 values(1,'JUN')
>INSERT INTO table1 values(2,'ERIC')
>INSERT INTO table1 values(3,'BORIS')
>INSERT INTO table1 values(4,'CETIN')
>INSERT INTO table1 values(5,'TUSHAR')
>INSERT INTO table1 values(6,'VILHELM')
>
>
>
>I want to show above data with OptionGroup as shown in attachment.
>
>please help
CREATE CURSOR table1(sno n(2),names c(10))
INSERT INTO table1 values(1,'JUN')
INSERT INTO table1 values(2,'ERIC')
INSERT INTO table1 values(3,'BORIS')
INSERT INTO table1 values(4,'CETIN')
INSERT INTO table1 values(5,'TUSHAR')
INSERT INTO table1 values(6,'VILHELM')

LOCAL AForm AS Form

m.AForm = CREATEOBJECT("Form")

m.AForm.AddObject("Options", "OptionGroup")

WITH m.AForm.Options AS OptionGroup

	.AutoSize = .T.
	.ButtonCount = RECCOUNT()

	SCAN
		WITH .Buttons[RECNO()] AS OptionButton
			.AutoSize = .T.
			.Caption = TRANSFORM(table1.sno) + "." + ALLTRIM(table1.names)
		ENDWITH
	ENDSCAN

	.Visible = .T.

ENDWITH

m.AForm.Show(1)

m.AForm = .NULL.
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform