Jan 18, 2001 #1 wuzzle Programmer Dec 20, 2000 75 CA Can there be a "case" statement within an "if" statement?
Jan 18, 2001 Thread starter #3 wuzzle Programmer Dec 20, 2000 75 CA Ok, so if I was setting up my comments before I write my code, would this be right?: Enter series of movie numbers Check status of MoviesEntered Calculate LateCharge If None MsgBox (“Accept a payment or charge on the customer’s account.”) Begin Case Case Payment Call CashierModule Case Charge UserOwes + LateCharge End Case Else MsgBox (“There were no charges. Click to exit the program.”) End If Quit Upvote 0 Downvote
Ok, so if I was setting up my comments before I write my code, would this be right?: Enter series of movie numbers Check status of MoviesEntered Calculate LateCharge If None MsgBox (“Accept a payment or charge on the customer’s account.”) Begin Case Case Payment Call CashierModule Case Charge UserOwes + LateCharge End Case Else MsgBox (“There were no charges. Click to exit the program.”) End If Quit
Jan 18, 2001 Thread starter #4 wuzzle Programmer Dec 20, 2000 75 CA Ok, so if I was setting up my comments before I write my code, would this be right?: Enter series of movie numbers Check status of MoviesEntered Calculate LateCharge If None MsgBox (“Accept a payment or charge on the customer’s account.”) Begin Case Case Payment Call CashierModule Case Charge UserOwes + LateCharge End Case Else MsgBox (“There were no charges. Click to exit the program.”) End If Quit Upvote 0 Downvote
Ok, so if I was setting up my comments before I write my code, would this be right?: Enter series of movie numbers Check status of MoviesEntered Calculate LateCharge If None MsgBox (“Accept a payment or charge on the customer’s account.”) Begin Case Case Payment Call CashierModule Case Charge UserOwes + LateCharge End Case Else MsgBox (“There were no charges. Click to exit the program.”) End If Quit
Jan 18, 2001 1 #5 brannon Programmer Dec 28, 2000 6 US LateCharge If None MsgBox (“Accept a payment or charge on the customer’s account.”) Select Case '*** Be sure Its Select Case Case Payment Call CashierModule Case Charge UserOwes + LateCharge End Select '*** Be sure its end Select*** Else MsgBox (“There were no charges. Click to exit the program.”) End If Upvote 0 Downvote
LateCharge If None MsgBox (“Accept a payment or charge on the customer’s account.”) Select Case '*** Be sure Its Select Case Case Payment Call CashierModule Case Charge UserOwes + LateCharge End Select '*** Be sure its end Select*** Else MsgBox (“There were no charges. Click to exit the program.”) End If