Hi Razzak and Frank
I think I understand the property command at least on
this issue.
All I am looking for is a generic way to pick up the
filed name you click on or the button name. Nothing
different that I use to do with the Vbutton.eep in 6.5.
SET VAR vbutton = (CVAL('form_field_name'))
If each object had a Right and Left mouse click for EEPs
would work also, that way anytime someone did a Rt click
on any object I could pull up a help screen.
My eep will be something like this, it works for
DB Edit fileds.
IF vfhelp = 'T' THEN
SET VAR vtablname = .RBTI_FORM_TBLNAME
SET VAR vfldname = .RBTI_FORM_COLNAME
??somehow get the button name???
EDIT USING fhelp WHERE tabname = . vtablname AND fldname = .vfldname
ENDIF
thanks for all the help
Marc
----- Original Message -----
From: "van der Zwaag, Frank" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Tuesday, August 30, 2005 4:32 PM
Subject: [RBG7-L] - Re: SET VAR vbutton = (CVAL('form_field_name'))
Hi Mark,
I gather you are trying to do the following:
- The user clicks on an "Assist me" button, any subsequent clicks on
other buttons initiate a help screen for the specific button, until this
help is cancelled.
Placing the "Assist me" button is straight forward. What I would do is
flip a variable on/off through this button along the lines of set var
vAssist = -1 * .vAssist. That switches the value between -1 and 1.
In each of the other buttons you could now include a trap mechanism
along the lines of:
If vAssist = -1 then
call AssistScreen
Else
do your normal stuff
Endif
Whatta yah reckon??
Frank
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Marc
Sent: Wednesday, 31 August 2005 9:00 a.m.
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.
>
>
____________________________________________________________________
CAUTION - This message may contain privileged and confidential
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby
notified that any use, dissemination, distribution or reproduction
of this message is prohibited. If you have received this message in
error please notify Air New Zealand immediately. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of Air New Zealand.
_____________________________________________________________________
For more information on the Air New Zealand Group, visit us online
at http://www.airnewzealand.com
_____________________________________________________________________