Marc,
RBTI_Form_ColName is no longer associated with buttons on RBase forms. Neither is
Form_FieldName.
On the EEPs tab of the Object Property for the Button you are trying to get to work,
in the "Custom"
location should have this Format:
TestButn.eep using 'Button1'
Where 'Button1' would be the value you will test for in your eep like
Switch (.%1)
Case 'Button1'
-- If Button1 was pressed, the code here would execute
break
Case 'SomeOtherButton'
break
Default
Break
Endsw
return
----- Original Message -----
From: "marc schluter" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 10:54 AM
Subject: [RBASE-L] - Re: Set var VmenuOption = .%1 - Razzak's Reply
> I am so very sorry Razzak
>
> I just can't seem to get this to work.
> This is a menu form with buttons. Each button has the
> same eep on it.
>
> I a cut and past of your command below, traced the eep
> and I either get .RBTI_Form_ColName returned as the
> var value or the first column name for 2nd table
> region.
>
> The form has a dummy tab where the buttons are
> associated, so they are in focus. I have a 2nd tab
> with a region at the bottom of the form. With the
> second table / region on the form I get the first col
> name of that 2nd table. If I delete the region and
> table then I get .RBTI_Form_ColName returned as the
> value of the var vFieldName.
>
> What on earth am I missing?
>
> I even tested this on a new form, added a button and
> traced the same eep. I still can't get the button
> name returned.
>
> I down loaded the newest RBase files and unzipped them
> to the RBg7 folder. If I go to Help/About Rbase I see
> Build 7.0.66.21114 at the top and v7.0(7.001xRTo4) at
> the bottom
>
> again sorry
> marc
>
>
> >
> > SET VAR vFieldName = .RBTI_Form_ColName
> >
> > Using the Next Generation R:BASE 7.0 for Windows,
> > you also have
> > the following options:
> >
> > RBTI_Form_FormName to get the form name
> > RBTI_Form_TblName to get the table name
> > RBTI_Form_ColName to get the column name
> > RBTI_Form_ColValue to get the column value
> > RBTI_Form_VarName to get the variable name
> > RBTI_Form_VarValue to get the variable value
> > RBTI_DBGrid_Column to get the DB Grid column name
> >
> > Enjoy the Unbounded Possibilities with
> > Industrial-Strength,
> > Multi-User, True-Relational DBMS.
> >
> > Very Best R:egards,
> >
> > Razzak.
> >
> >
> > At 02:14 PM 11/13/2003 -0800, Marc Schluter wrote:
> >
> > >This should be simple but I can't seem to get it to
> > >work.
> > >
> > >I have a menu form with buttons. The eep should
> > get
> > >the button name, close the window, then run a
> > command
> > >file in a case statement.
> > >
> > >I see how the example works in Rrbyw4 but when I
> > trace
> > >my eep the var gets set to .%1 not the button name.
> > >
> > >I use to use SET VAR vbutton =
> > >(CVAL'form_field_name')) but that doesn't seem to
> > >work. So, I replaced that with set var VmenuOption
> > =
> > >.%1 but no luck so far.
> > >
> > >sorry about asking so many questions
> >
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
>