Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox using Get/Say command
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01169601
Message ID:
01169605
Views:
17
This message has been marked as the solution to the initial question of the thread.
@ <row, column> GET <memvar> | <field>
FUNCTION <expC1> | PICTURE <expC2>
	[FONT <expC3>[, <expN1>]]
	[STYLE <expC4>]
	[DEFAULT <expr>]
	[SIZE <expN2>, <expN3>]
	[ENABLE | DISABLE]
	[MESSAGE <expC5>]
	[VALID <expL1> | <expN4>]
	[WHEN <expL2>]
	[COLOR SCHEME <expN5> | COLOR <color pair list>] 
Example:
mValue = .t.
@0,0 get mValue FUNCTION '*CN3' Picture 'Select'
Better examples from help:

The following examples illustrate the various forms of syntax you can use to create a check box. In all the examples the check box is placed in the second
row and column. The state of the box (checked or unchecked) is stored to the memory variable MCHOICE. Each example creates the same check box.
FUNCTION clause only:
STORE 1 TO mchoice
@ 2,2 GET mchoice FUNCTION '*C Titles'
READ
STORE 1 TO mchoice
STORE '*C Titles' TO mprompt
@ 2,2 GET mchoice FUNCTION mprompt
READ



PICTURE clause only:



STORE 1 TO mchoice
@ 2,2 GET mchoice PICTURE '@*C Titles'
READ
STORE 1 TO mchoice
@ 2,2 GET mchoice PICTURE '@*C' + ' Titles'
READ
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform