Questions tagged as 'sintaxe'

2
answers

How is the syntax of generics in C # compared to Java?

I am a Java developer studying C # and I came across the following difference between the two languages:    link       Generics       Generics are much less fiddly in C #. Partially because they are both compile-time and run-time concept....
asked by 18.05.2018 / 20:20
1
answer

Passing parameter in the FILTER of an array in JavaScript

I need to pass a parameter to an external function that I want to create for a filter array, but I do not know how to do it. Example: This code already works: const myArray = [ { "name": "nome1" }, { "name": "nome2" }, { "name": "...
asked by 26.05.2017 / 00:25
2
answers

PHP + MySQL - Syntax error with quotes in String

"When the string has no single quotation marks, this works fine, my problem is when there are single quotation marks" example with single quotes: $name = "Michael"; $store = "Mike's Store"; "INSERT INTO database(name, store) VALUES('$name'...
asked by 12.03.2017 / 17:03
2
answers

Help me with the error "Undefined index: referrer in" [duplicate]

I'm having an error and I'm trying to fix it but I can not, can anyone help me? Thank you. The error is: Notice: Undefined index: referrer in C: \ xampp \ htdocs \ brpg \ register_content.php on line 71 The file " register_content.php "...
asked by 03.01.2017 / 11:35
1
answer

Has the Meteor's syntax changed from version 0.8 to version 1.0?

Among the various changes in the Framework Meteor from version 0.8 to version 1.0, I know that it no longer uses Meteorite, and that the template engine has changed from Handlebars to Blaze. But has the syntax changed? And what has changed?    ...
asked by 13.06.2015 / 21:06
1
answer

Delete a folder even though it is with files

What code should I use to delete a folder in which it contains files inside it? This code I used only deletes an empty folder. void ApagarPasta(string nameOf, bool subPastas){ Directory.Delete(nameOf, subPastas); // Deleta a pasta e s...
asked by 03.08.2014 / 20:22
1
answer

Syntax Highlighting in Android textview

Do you know of any library or method to display source code (Syntax Highlighting) in the textview? I need to do this for hundreds of codes (average of about 400), just for reading. Something similar to the image below. Thank you!     
asked by 22.09.2014 / 22:33
6
answers

Do not use "{}" keys in IF in PHP can generate problems?

Generally for checks that modify only one line I have been avoiding the use of keys, since PHP accepts this method, but I rarely see codes from other programmers like this ... Examples My method if($thumb->SaveInDB('imagens','img'))...
asked by 11.07.2014 / 19:34
0
answers

Error procedure holiday

Good afternoon guys, I'm trying to create a procedure and I can not solve my error even after several searches on the net, if you can help me, the error that appears is this: can not format message 13: 393 - message file C: \ WINDOWS \ firebi...
asked by 01.12.2018 / 18:28
1
answer

"[-4:]" What is this syntax?

I have the following expression: namer = name[-4:] Where name gets a name, but what does this [-4:] mean?     
asked by 05.11.2015 / 23:01