Questions tagged as 'switch'

1
answer

Angular JS - template of a directive with ng-model does not work inside ng-switch

To be more dynamic my directive I decided to include the category field that makes the selection of the type of template to be displayed. As it's just a select I thought of using ng-switch instead of multiple html files. Plunker: link i...
asked by 23.12.2015 / 22:05
0
answers

Update a Switch from a Dialog

I have a Dialog like this: public void Dialogo_Iluminacao() { final Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.dialogo_iluminacao); dialog.setTitle("Iluminação"); final Switch garagem = (Switch) dialo...
asked by 24.02.2015 / 14:11
3
answers

Error in "switch case"

I have an error in one of the case s of switch , the error is this: I'mdoingaCRUDfromalibrary,whenyouseethecode,youmightfinditstrange:I'vemadesomeswitchwithonly1option,becauseeachoptionleadstoadifferentmenu@OverridepublicintMenu...
asked by 28.06.2017 / 21:13
2
answers

Is this a bug in PHP SWITCH?

I'm trying to make a switch in PHP, but it returns me some very strange values. For example, if the variable $xp is equal to 0 , it returns me that the level is 20 . I'm not understanding '-' switch($xp){...
asked by 05.07.2018 / 21:48
4
answers

How to create a switch..case with ranges of values?

If a total of days is greater than 30 and less than 60, I do something. If it's bigger than 60 and smaller than 90 I do something else and so on. How do I case ? Is case the best option?     
asked by 26.03.2014 / 13:53
2
answers

Switch with several POST [duplicate]

I have a question about Switch. I want to put several options for a Switch and now I have it and it does not work: if (isset($_POST['estado'])&& ($_POST['Distrito'])) { switch($_POST['estado'] && $_POST['Distrito']) {...
asked by 27.03.2014 / 11:55
1
answer

Code with error in Switch Case

I have to do the following exercise:    Make a Java program that requests the total amount spent by the client from   a shop, print the payment options, request the desired option, and   prints the total value of the installments (if any).  ...
asked by 03.10.2017 / 00:07
1
answer

Problem with PHP pagination

I have a problem with pagination, I have the main page where the whole structure of my site, called main.php, is located. There you have the switch to open the files, that way. PAGE MAIN.PHP switch(@ $_GET['pag']) { case "historico"...
asked by 30.07.2014 / 03:18
1
answer

Switch Paging [duplicate]

Where do I choose the options: <span class="IWLABEL10CSS" id="IWLABEL7">Distrito</span> <select name="Distrito" size="1" width="180" class="COMBODISTCSS" id="COMBOFAB" tabindex="1"> <option value="Indiferente">...
asked by 07.04.2014 / 11:25
1
answer

Error with switch in swift

Well, I'm having an error in the following code. The error is in the switch, the following error appears:    expected declaration. What to do? import UIKit class ViewControllerAnalseOP1: UIViewController, UITextViewDelegate { var i...
asked by 28.07.2015 / 15:45