I also do this routinely.  The only caveat is to make sure that you don't get the ENDs 
out of order.
SWITCH
  WHILE
    SWITCH
      WHILE
      ENDW
    ENDSW
  ENDW
ENDSW
works a-ok, but if you do the following R:Base will choke big time.  I use R:Style 
religiously, and it warns me of these errors before I lock up my session.

SWITCH
  WHILE
    SWITCH
      WHILE
      ENDSW
    ENDW
  ENDW
ENDSW


"Javier Valencia" <[EMAIL PROTECTED]> wrote:

>>> SWITCH-ENDSW Inside a WHILE-ENDWHILE <<
>It should be no problem, the same goes for IF-ENDIF. I have used all these
>commands nested many levels deep. As indicated in a previous thread, define
>your variables outside the loop and make sure that your "FILES" settings is
>large, I set mine at 40.
>
>Javier Valencia, PE
>President
>Valencia Technology Group, L.L.C.
>14315 S. Twilight Ln., Suite #14
>Olathe, KS �66062-4571
>(913)829-0888
>(913)649-2904 FAX
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
>Behalf Of J. Stephen Wills
>Sent: Thursday, July 11, 2002 3:00 PM
>To: RBase List Server
>Subject: SWITCH-ENDSW Inside a WHILE-ENDWHILE
>
>Can you do this? �If so, has anybody tried it? �What happens? �Again, if so,
>any tips, insights, caveats?
>
>I've been re-reading some previous e-mails related to flow control, nesting,
>form.buttons, eep's, QUIT TO, etc, and, somehow, this came to mind.
>
>This is probably just to satisfy my curiosity, but I was just wonderin'.
>
>Thanks,
>Steve in Memphis
>
>================================================
>TO SEE MESSAGE POSTING GUIDELINES:
>Send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: INTRO rbase-l
>================================================
>TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: UNSUBSCRIBE rbase-l
>================================================
>TO SEARCH ARCHIVES:
>http://www.mail-archive.com/rbase-l%40sonetmail.com/
>
>================================================
>TO SEE MESSAGE POSTING GUIDELINES:
>Send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: INTRO rbase-l
>================================================
>TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: UNSUBSCRIBE rbase-l
>================================================
>TO SEARCH ARCHIVES:
>http://www.mail-archive.com/rbase-l%40sonetmail.com/
>


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to