Most voted "string-concatenation" questions
The tag can be used for any language, so use a language tag together. String concatenation is the union operation of two strings generating a single string.
Learn more…101 questions
Sort by count of
-
1
votes5
answers14748
viewsTake part of a string delimited between characters
I have a string as in the example below: $string = 'Lorem ipsum dolor sit amet, consectetur /adipiscing elit/.'; My question is, how can I only get the part of the text that’s between the bars /,…
-
1
votes3
answers810
viewsMultiple lines on a Showmessage in Delphi
I need to trigger an error message if the user tries to enter invalid codes in a temporary table on grid. The codes come from a .txt. The codes fired on the monitor are ok but the message is…
-
1
votes2
answers242
viewsSplit date format
I have the following value 14/02/2018 13:53:12 in excel. Cell with value is in text format. When having concatenate the value the date above is like this: 43145,57861111111 Does anyone know how to…
-
1
votes1
answer2746
viewsHow to concatenate values within a class in React.JS
I have the following code: { this.state.listSkills.map(function(habilidade){ return ( <ul className="habilidades"> <li className="habilidade-"{habilidade.value}>…
-
1
votes1
answer113
viewsAdd value at the beginning and end of a mysql string
How to add text at the beginning and end of a string? For example, I would like to add <p style="display:inline;"> at the beginning and </p> at the end of all rows in the column answer…
-
1
votes1
answer3104
viewsPython string corrupted with character
I have a program that creates for your running another program on the user’s computer. In a snippet, I define the directory to which the new program will be intended as diret = "C:\\Users\\" +…
-
1
votes2
answers52
viewsHow to place variable concatenated inside a <a>?
I have this php line: echo '<a href="?p=ultimasnoticias&pagina='.$i.'">'.$i.'</a>'; I need to put the .$i. between the <a>.$i.</a> in my html script, example: <nav>…
-
1
votes1
answer78
viewsHow to concatenate values of different types into a string?
How do I concatenate all this string within a variable? Have some more elegant way to solve my problem? int num1 = 1; int num2 = 2; int num3 = 3; char simbol1 = '+'; char simbol2 = '-'; string…
-
1
votes1
answer849
viewsHow to break lines using template string (ES6)?
I have a request for the back-end and your URL is very large. this .$http .get(`backoffice/usuarios/${this.id}/grupo/${this.grupo}/filial/${this.filial}/multinivel/${this.multinivel}`) .then(({ data…
javascript vue.js string-concatenation string-interpolationasked 6 years, 6 months ago guastallaigor 1,294 -
1
votes1
answer309
viewsConcatenate lines with the same code
When executing the query select * from ivr_interacao,ivr_business where ivr_interacao.codigo = ivr_business.idvisita and ivr_business.campanha = 5 order by start_time asc I have the following…
-
1
votes1
answer1654
viewsHow to concatenate strings into a list?
If I have a list of string-like objects and want to concatenate all these items, how do I do that? For example: row1 = ['___', '___', '___'] I would like to print: '___|___|___' I managed to do so,…
-
1
votes3
answers132
viewsError concatenating component value in query
As darlings in my C# Winforms project are being carried out through StringBuilder. It was suggested here in the O.R. query of Consulta.Append("Select * from...") for @"select * from..." for being…
-
1
votes5
answers459
viewsConcatenate id by description into an array in javascript
I have an array in js with only an id and a description, example: var variavel = [{id: 1, descrição: 'Brasil'}, {id: 2, descrição: 'Brasil'}, {id: 3, descrição: 'Chile'}, {id: 4, descrição:…
-
1
votes2
answers120
viewsMysql - Select - how to group two different values into a single value
I would like help on a subject. I have a query that lists requests(orders), and each request has its status, for example: 'confirmed', 'refused' and 'unmarked', I would like to create a Select that…
-
1
votes1
answer71
viewsHow to add a value key to a dictionary?
I want to add terms to an organized dictionary-like glossary, requested by an activity, but I’m getting an error message that I can’t identify why. glossario = { 'concatenar': 'Concatenar é a junção…
-
1
votes1
answer45
viewsMerge columns into a single string in R
Suppose the following date.frame: df<-data.frame(V1 = c(9,1,4,2,3,0,7,9,5), V2 = c(9,2,5,4,7,9,2,3,8), V3 = c(9,8,5,7,4,0,2,9,3), V4 = c(9,7,3,6,2,9,5,8,4), V5 = c(9,2,5,4,0,3,9,4,8)) V1 V2 V3 V4…
-
0
votes1
answer72
viewsConcatenation Create Table
I’m trying to create a table from the user’s email, and I’m using the code below: $email = $_SESSION["email"]; echo $email; $create=mysql_query("CREATE TABLE userpics_'$email' (id_user VARCHAR(60),…
-
0
votes1
answer473
viewsConcatenate in the PDO query
I’ve heard that when concatenating into a query using PDO can cause slowdowns and even leave the system vulnerable, this is true? I want to concatenate into one query and I’m afraid to take certain…
-
0
votes1
answer370
viewsConcatenate SQL Server records
I have a problem with a query, where I need to concatenate records from a table. I need the select take the FormID and concatenate the records of AcaoID only if Permitir for 1. Query: Declare…
-
0
votes1
answer4369
viewsHow to concatenate variable with formula in Excel?
It is correct that I concatenate a variable to an Excel formula? Excel complains at concatenation closure: Sheets("FATURA").Select Dim variavel As Double variavel = InputBox("Digite Valor da Tarifa…
-
0
votes1
answer233
viewsSQL - Select with possible concatenation
I created a query that concatenates my results. It is a table with names and to which range (square) they are classified. The table is called consulta_readiness and the fields are name and squared:…
-
0
votes2
answers240
viewsConcatenate items into a vector
I have the following vector, which I obtain after consulting a database: a = ['[[10, 20], 10]'] When I try to access their values through the indexes, I can’t. For example, if you type:…
-
0
votes2
answers47
viewsHow to add values from several strings to another without this string losing its value?
I’m going to add values to a variable inside a for as follows: function gerarcods(){ var alfa = $("#nalfa").val(); var qtdcods = $("#nqtdcods").val(); codigos = ""; for(i = 1; i<= qtdcods; i++){…
-
0
votes3
answers1610
viewsConcatenate single quotes into date variable?
I have an application in Vuejs and need to concatenate simple quotes in a variable that has a date like this 2017-11-09T02:00:00.000Z . I tried it this way and I didn’t succeed: var novaData = "'" +…
-
0
votes1
answer104
viewsHow do I print Side using end=" with the included Time Module
import time for i in range(0,10,+1): print(".", end="") time.sleep(1) I want to know how to print . sideways ex: ... During that time of 1 second... when I don’t use the end it works but printing…
-
0
votes1
answer1096
viewsVariable length - SAS
I am making an if in SAS to declare the value that a variable will receive depending on the condition, but when I say that the variable will receive a string of size up to 3 it returns correctly,…
-
0
votes2
answers86
viewsas "cachear" css concatenated via GET
I’m making a concatenation of css files where the names of the files are passed by parameters in the url to the css.php file, my question is if it is somehow possible to "cached" the requested files…
-
0
votes2
answers703
viewsquote and quotes in a string (leaving " or #39; in the View)
I’m trying to put the following text in a string, but I can’t... when I can’t find the wrong double quotes in the arroba... I’m going crazy. Can someone help me? ,{ "@type": "Listitem", "position":…
-
0
votes0
answers63
viewsRaise Xlrderror - Indicating Sheet_name Python
Good morning. I’m starting with Python and I have a problem. I have N files in Excel and need to read the sheet_name of each indicating their name, the code I have so far is this: os.chdir("work…
-
0
votes2
answers212
viewsHTML5 concatenate checkbox with text name
Good morning, you guys, I have done several researches on the subject and found nothing that refers to my environment. Come on, I have a Portal Captive in the company but I have two domains in the…
-
0
votes2
answers58
viewsConcatenate n characters of a typed word
I want to make a program in which the user type any word and is stored in a string, soon after it is necessary to store that same word in another string only in the reverse form, for example if it…
-
0
votes2
answers382
viewsJavascript function concatenation in onclick inside php
Please help me out <?php if($dados_login['acesso'] >= 3){ echo("<div class='col-md-2'> <button type='button'…
-
0
votes2
answers264
viewsRemove First Name and Last Name from Full Name
I am using the SUBSTRING_INDEX command to get the first name and last name of a table field "Names". SELECT SUBSTRING_INDEX(nome_completo, ' ', 1) AS primeiro_nome, SUBSTRING_INDEX(nome_completo, '…
-
0
votes1
answer2108
viewsNotice: A non well Formed Numeric value encountered
I created a fictitious example of a discount on a person’s salary, the code works, but two appear notices I listed below the code: class Descontos{ public $salario; public $inss; public…
-
0
votes1
answer26
viewsCONCAT WITH ERROR
SELECT b.numero_contrato as name, CONCAT( sum(CASE WHEN a.status = 'Concluida' THEN 1 ELSE 0 END) AS concluidas, sum(CASE WHEN a.status = 'Recebida' THEN 1 ELSE 0 END) AS recebidas, sum(CASE WHEN…
-
0
votes1
answer107
viewsHow to concatenate two strings into C without using <string library. h>?
#include<stdio.h> #include<stdlib.h> int main(){ char vet1[20] = "Bom "; char vet2[20] = "dia"; for(int i=0; vet1[i]!='\0'; i++){ for(int j=0; vet2[j]!='\0'; j++){ vet1[i]=vet2[j];…
-
0
votes0
answers130
viewsGROUP_CONCAT bringing incomplete response
I am trying to bring all the product names (even the repeated ones) I have registered in a spreadsheet, but the code is stopping in the middle of the process. Can anyone tell me why ? Is there a…
-
0
votes0
answers49
viewsHow to concatenate results from an SQL
I have two tables: Produtos, Eventos and Productsprovents(coming from the many ratio for many of the tables Products and Events): I performed the following SQL to get the event data and products…
-
0
votes0
answers135
viewsFirebird - Concatenating fields that return from a case
SELECT DP.DATA AS DATA, S.DESCRICAO, COUNT(P.CODIGO) AS QNTD, (CASE WHEN (CAST(SUBSTRING(P.HORAFIM FROM 1 FOR 2) AS INTEGER) = CAST(SUBSTRING(P.HORAINI FROM 1 FOR 2) AS INTEGER)) THEN…
-
0
votes1
answer51
viewsConcatenate values with condition (case)
Good evening! I’m new to the programming. I have the code below in a CTE that counts the number of subscribers in each area. In the main consultation I see which area has the largest amount of…
-
0
votes0
answers8
viewsError when concatenating distinct CNN branches/models
I’m trying to implement a 3D facial recognition algorithm using convolution neural networks (CNN). I implemented a Generator image for rgb images and a Generator image for in-depth images…
-
-1
votes1
answer56
viewsWhat’s wrong with this concatenation?
$('#cidades').load('cidades.php?estado='+$('#estados').val()+'&cliente='+idcl);…
javascript variables get string-concatenationasked 8 years, 11 months ago Gladison Neuza Perosini 861 -
-1
votes1
answer98
viewsHow to concatenate serialized data from a form to the javascript string?
How can I concatenate a serialized data variable var dados = $(form).serialize(); with a second variable, for example var x ="2222"? Thank you for your attention! Horatio…
-
-1
votes2
answers294
viewsConcatenate variable with array in PHP
I have a variable nome, and a array. How to put this variable in array? Example: ['dia'].$nome; When I do this, returns error. The array dia contains a string, as an example: "Domingo", and nome the…
-
-1
votes1
answer77
viewsYou doubt Function and Length?
Good evening Everyone, I would like to help with the following code: function tamanhoNomeCompleto(nome, sobrenome){ return (nome + " " + sobrenome).length; } tamanhoNomeCompleto("Lucas", "Paixao");…
-
-1
votes2
answers745
viewsRemove characters from the middle of a String
Write a program that, starting with a word defined by you, prints on the screen the words resulting from removing, one by one, the middle characters of the previous word, until you reach a word with…
-
-1
votes2
answers40
viewsManual String Breaking in JAVA
Gentlemen, I am trying to do a routine that receives a certain text and a word from the user, after checking if within the text there is a word equal to what was requested. My attempt was to…
java comparison string-concatenation characters jtextareaasked 3 years, 8 months ago Gabriel Galdino 3 -
-2
votes1
answer24
viewsInclude in a variable url conunt javascript 'console' Chrome
var account = 1 var account = 1 + 1 window.open('/test/number/11965/', '_Blank') I need to replace the value of 11965 by variable account so that it remains window.open('/test/number/COUNT/',…
-
-2
votes1
answer25
viewsHelp with creating a file algorithm. c
Hello I’m having trouble developing an algorithm that reads a.txt file, fix the text and create the result in another output file. The read process should occur line by line, but the input file has…
-
-2
votes1
answer36
viewsConcatenate string into C
Good afternoon guys, I’m starting my studies in c and I found a problem trying to concatenate strings. #include <stdio.h> #include <stdlib.h> #include <string.h> int main () { char…