Marc:
If you want to keep all your code in one place, why don't you use a Custom
Form Action. For example, in your form define a Custom Form Action called
DisplayHelp.

-- Custom Form Action: DisplayHelp
SET VAR vcase = .%1
SWITCH (.vcase)
CASE 'A'
        -- your code
        BREAK
CASE 'B'
        -- your code
        BREAK
CASE 'C'
        -- your code
        BREAK
ENSW

And the on your first button you simple place the code
PROPERTY RBASE_FORM_ACTION DisplayHelp 'USING A'
RETURN

On your second button:
PROPERTY RBASE_FORM_ACTION DisplayHelp 'USING B'
RETURN

On the third button:
PROPERTY RBASE_FORM_ACTION DisplayHelp 'USING C'
RETURN

And so on...each button will call a selected portion of your code. You can
do the same thing with an external EEP but I like to keep all the code for
the form together, so I am partial to Custom Form Actions.
Javier,

Javier Valencia, PE
President
Valencia Technology Group, L.L.C.
14315 S. Twilight Ln, Suite #14
Olathe, Kansas 66062-4578
Office (913)829-0888
Fax (913)649-2904
Cell (913)915-3137
================================================
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material.  Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from all system and destroy all copies.
======================================================

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Marc
Sent: Tuesday, August 30, 2005 4:00 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Re: SET VAR vbutton = (CVAL('form_field_name'))

Well, I do not think this will work for what
I am trying to do or I can't seem to figure it out.

I want to have a generic EEP that gets the
field name or button's text caption name when
you click on either object.  Then I will popup
a small form with a help message for that object.

EDIT USING helpform where objname = .vobjname

I tried using the same ComponentI for 3 buttons
but it kept getting the same button text caption no matter
which button I clicked.

Is this possible with 7.5 ?
I think I am still missing something.

Marc





> >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.
>
>

Reply via email to