Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8065

Re: IF Else nesting in Crystal report

$
0
0

Hi,

 

Try this:

 

If

(

{CCS_ScheduleMatrixRpt;1.period4} [(InStr ({CCS_ScheduleMatrixRpt;1.period4}, ";") - 1)] = "4"

or  {CCS_ScheduleMatrixRpt;1.period2} [(InStr ({CCS_ScheduleMatrixRpt;1.period2}, ";") - 1)] = "4"

or  {CCS_ScheduleMatrixRpt;1.period3} [(InStr ({CCS_ScheduleMatrixRpt;1.period3}, ";") - 1)] = "4"

or  {CCS_ScheduleMatrixRpt;1.period5} [(InStr ({CCS_ScheduleMatrixRpt;1.period5}, ";") - 1)] = "4"

or  {CCS_ScheduleMatrixRpt;1.period1} [(InStr ({CCS_ScheduleMatrixRpt;1.period1}, ";") - 1)] = "4"

or  {CCS_ScheduleMatrixRpt;1.period6} [(InStr ({CCS_ScheduleMatrixRpt;1.period6}, ";") - 1)] = "4"

or  {CCS_ScheduleMatrixRpt;1.period7} [(InStr ({CCS_ScheduleMatrixRpt;1.period7}, ";") - 1)] = "4"

or  {CCS_ScheduleMatrixRpt;1.period8} [(InStr ({CCS_ScheduleMatrixRpt;1.period8}, ";") - 1)] = "4"

)

 

else if

(

  {CCS_ScheduleMatrixRpt;1.period4}[atSemiP4] = "4", {CCS_ScheduleMatrixRpt;1.period4}[(InStr({CCS_ScheduleMatrixRpt;1.period4}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period4})] or

  {CCS_ScheduleMatrixRpt;1.period2}[atSemiP2] = "4", {CCS_ScheduleMatrixRpt;1.period2}[(InStr({CCS_ScheduleMatrixRpt;1.period2}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period2})] or

  {CCS_ScheduleMatrixRpt;1.period3}[atSemiP3] = "4", {CCS_ScheduleMatrixRpt;1.period3}[(InStr({CCS_ScheduleMatrixRpt;1.period3}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period3})] or

  {CCS_ScheduleMatrixRpt;1.period5}[atSemiP5] = "4", {CCS_ScheduleMatrixRpt;1.period5}[(InStr({CCS_ScheduleMatrixRpt;1.period5}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period5})] or

  {CCS_ScheduleMatrixRpt;1.period1}[atSemiP1] = "4", {CCS_ScheduleMatrixRpt;1.period1}[(InStr({CCS_ScheduleMatrixRpt;1.period1}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period1})] or

  {CCS_ScheduleMatrixRpt;1.period6}[atSemiP6] = "4", {CCS_ScheduleMatrixRpt;1.period6}[(InStr({CCS_ScheduleMatrixRpt;1.period6}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period6})] or

  {CCS_ScheduleMatrixRpt;1.period7}[atSemiP7] = "4", {CCS_ScheduleMatrixRpt;1.period7}[(InStr({CCS_ScheduleMatrixRpt;1.period7}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period7})] or

  {CCS_ScheduleMatrixRpt;1.period8}[atSemiP8] = "4", {CCS_ScheduleMatrixRpt;1.period8}[(InStr({CCS_ScheduleMatrixRpt;1.period8}, " ") + 1) To Length({CCS_ScheduleMatrixRpt;1.period8})]

}

 

Am not sure see how this happens...

 

--dj


Viewing all articles
Browse latest Browse all 8065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>