At 01:21 PM 8/30/2005, Marc Schluter wrote:
This use to return the name of a Button in 6.5 but does not
work in 7.5.
SET VAR vbutton = (CVAL('form_field_name'))
How can this be done in 7.5? What am I missing?
Marc,
Actually, in 6.5++ for Windows, the (CVAL('Form_Field_Name'))
return the text caption of that button.
You can achieve the same functionality in 7.x/V-8 Turbo for
Windows by using the CAPTION property as following:
-- Start
SET VAR vButton TEXT = NULL
GETPROPERTY <ButtonComponentID> CAPTION vButton
RETURN
-- End
vButton will return the text caption for that button.
That's all there is to it!
For complete details, syntax and examples:
Building Syntax for PROPERTY Command:
http://www.rbase.com/property
Building Syntax for GETPROPERTY Command:
http://www.rbase.com/getproperty
or
Refer to R:Docs (version 2.3 or higher)!
Have fun.
Very Best R:egards,
Razzak.