× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I agree, it looks correct.  Although it says 'ELSE' you are really nesting
an If...



-----Original Message-----
From: rob@dekko.com [mailto:rob@dekko.com]
Sent: Friday, January 11, 2002 7:06 AM
To: code400-l@midrange.com
Subject: Re: Indent on "ElseIf"



I think it is working perfectly fine.

How would you have it work?


Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin



                    "Samuel J Lennon"
                    <lennon_s_j@hotmai       To:     CODE400-L@midrange.com
                    l.com>                   cc:
                    Sent by:                 Fax to:
                    code400-l-admin@mi       Subject:     Indent on "ElseIf"
                    drange.com


                    01/11/2002 09:49
                    AM
                    Please respond to
                    code400-l






[ Converted text/html to text/plain ]

I have code like this:

C If RRDTVSUB <> *Zero

C Eval Work_Date = RRDTVSUB

C

C ElseIf RROVDT <> *Zero

C Eval Work_Date = RROVDT

C

C Else

C If RROVCD <> *blanks

C Movel RROVCD Work_Code

C Endif

C Endif

If I indent it it looks like this:

C If RRDTVSUB <> *Zero

C | Eval Work_Date = RRDTVSUB

C

C | ElseIf RROVDT <> *Zero

C | Eval Work_Date = RROVDT

C

C Else

C | If RROVCD <> *blanks

C | | Movel RROVCD Work_Code

C | Endif

C Endif

Shouldn't the ElseIf be at the same level as the preceeding If? That is,
the
ElseIf shouldn't be indented? Opinions?

----------------------------------------------------------------------------
--

Get your FREE download of MSN Explorer at http://explorer.msn.com[1].

===References:===
  1. http://go.msn.com/bql/hmtag_etl_EN.asp

_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.





_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.