Marc:
Make sure that when you run your EEP you use the option that you want .%1 to
have:
your_code.eep USING BUTTON1
When your_code.eep executes, %1 will be set to 'BUTTON1"
You can then set it to whatever you want:
-- This will be your EEP
SET VAR my_button = .%1
SWITCH (.my_button)
CASE 'BUTTON1'
-- do what you need to do
BREAK
CASE 'BUTTON1'
-- do what you need to do
BREAK
ENDSW
-- rest of your EEP code
I hope this information is of help.
Javier,
Javier Valencia, PE
President
Valencia Technology Group, L.L.C.
14315 S. Twilight Ln, Suite #14
Olathe, Kansas 66962-4578
Office (913)829-0888
Fax (913)649-2904
Cell (913)915-3137
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of marc schluter
Sent: Thursday, November 13, 2003 4:15 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Set var VmenuOption = .%1
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
marc
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree