Questions tagged as 'string'

3
answers

Can not implicitly convert type 'string' to 'int'

protected void btnSave_Click(object sender, EventArgs e) { List<ProdutoAmortizacaoCreditoDias> aDay = new List<ProdutoAmortizacaoCreditoDias>(); ProdutoAmortizacaoCreditoDias ee = new ProdutoAmortizacaoCreditoDias(...
asked by 10.02.2017 / 18:57
2
answers

Convert string to integer

I'm not able to convert the text from my TextBox to integer. namespace Pag98_Exe1 { public partial class frmveiculos : Form { public frmveiculos() { InitializeComponent(); } Veiculos...
asked by 21.10.2016 / 02:44
2
answers

How to get a value from a sentence in String

example I have a return of that WebService mode    "Success! User saved Id: 257" All right, I'm getting the phrase like: Success! User saved. Id: 257 I just need to get the number or get the 257 the sentence is only used to confirm if...
asked by 06.10.2014 / 16:42
1
answer

How to validate Date with Regex?

I'm trying to catch a date inside a string using regex, but when I try to retrieve the part of the string it returns me the following error:    parsing "\ RATE: ([\ d /] +)" - Unrecognized escape sequence   \ T. match = Regex.Match(sbDado...
asked by 13.06.2016 / 23:04
1
answer

Turn all elements of a list into floats

This is the code I wrote. n_alunos=input('') x=0 idades=[] alturas=[] while x != n_alunos: x+=1 n=raw_input('') a=n.split(" ") idades.append(a[0]) alturas.append(a[1]) How do I transform the elements of the 2 string lis...
asked by 19.11.2017 / 23:27
3
answers

Help with java arrays

I have the array disciplines and the current array. The current one is an exact copy of the subjects. If there are two equal strings within the disciplines array I need to delete all equal and keep only one. That is, the current should not...
asked by 16.11.2017 / 17:31
2
answers

Cut the last character of a C # string [duplicate]

I'm creating an export from SQL to TXT. With this I add the ";" after building each column. But at the end of the last column you are adding the ";" also. How do I get this ";" the end of the last column of all lines? My% of...
asked by 13.04.2016 / 20:51
3
answers

Simple question about the title () command

If I put for example the name:    roberto fair da silva using title it looks like this:    Roberto Justo Da Silva How do I make the command title do not modify the word 'da' to look like this:    Roberto Justo da S...
asked by 07.10.2018 / 22:36
2
answers

Break txt file into blocks, and each block in lines

I have an "active.txt" file where you can find information blocks Ex: SACOLAO CENTER R RUA PAULINO MENDES LIMA,31 CENTRO...
asked by 10.07.2015 / 17:50
2
answers

Convert String to Date

I'm new to java and am having a question about converting String to Date. I've spent hours researching the internet to see if I could find any solution and I came across very few solutions but when I was going to put these solutions to run, my a...
asked by 16.10.2015 / 16:54