1 Create an EEP with this code in it
    CLS 
    SAVEROW
    SET VAR vButton = .%1
    CLOSEWINDOW
    RETURN

2. Put your button on the form 

3. Go to Properties Click Custom 

4. In the run part of the button put this
    YourAboveEPPName.EEP USING 1

5. In your .RMD File used to run the form put this
  
 LABEL Start   
   EDIT USING YourFormName
    
    IF vButton = 1 THEN
      "Do something"
      GOTO Start
     EndIF 

I hope this helps


On 14 Nov 2003 at 7:54, marc schluter wrote:

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



Victor Timmons  
Tiz's Door Sales, Inc
425-258-2391

Reply via email to