If I remember right it will work with buttons or columns (not sure about variables) so this is why I went this route.
I could have one eep for each form if I wanted.
Jim
marc schluter wrote:
Thanks Jim
I never knew about the .#Form_columname option. I must have been fishing that day.
marc
SET VAR vbutton = (SGET(.#FORM_COLUMNNAME,4,1)) SET VAR vbuttn = (STRIM(.vbutton)) SET VAR vbutn = (LUC(.vbuttn))
SWITCH (.vbuttn) CASE 'EXIT' --Leave, but check if something needed to be saved CLOSEWINDOW BREAK CASE 'SAVE' SAVEROW BREAK CASE 'LEAV' --Leave, don't save row DELROW CLOSEWINDOW BREAK ENDSW
I follow the same method when working on the getting the percent.
SET VAR vm_button = (SGET(.%1,4,1)) SET VAR vm_buttn = (STRIM(.vm_button)) SET VAR vm_butn = (LUC(.vm_buttn))
Jim Limburg
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 marc
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail
AddressGuard
http://antispam.yahoo.com/whatsnewfree
--- RBASE-L ================================================ TO POST A MESSAGE TO ALL MEMBERS: Send a plain text email to [EMAIL PROTECTED]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word:
UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message
body, place any text to search for.
================================================
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree

