Questions tagged as 'string'

2
answers

Transfer alphabet to a table column

Good morning The problem is simple but I still can not find the right way to start programming since I do not have much time to devote to programming. The question is the following ... As I can generate an alphabet array to insert it in th...
asked by 26.01.2018 / 21:49
1
answer

How to convert a String type to Float or Int?

In Python, how can I convert a string "123.456" to a decimal number 123.456 ? And how a chain "32" to an integer 32 ?     
asked by 13.02.2017 / 14:40
2
answers

Problem showing special characters JAVA-Kdb

I extract the data from a DB through a connector, but when it comes to showing them in a list in a jsp, it shows them to me like this: How can I format the Strings when I take them out or what can I do to show them with their accents an...
asked by 24.01.2018 / 12:27
1
answer

Arguments python as a string

I'm stuck in a script. I try to expose you to see if you can help me. I define the following before entering the loop.    client, date, time, state, name, result, most_repeated = sys.argv [1] .split ()       timestamp = str (date) + '' +...
asked by 08.01.2018 / 16:51
1
answer

Separate chain with split and store the data only in necessary variables

I have the following code: String cadena=JTextField.getText(); String[] split=cadena.split("\s"); String p1=split[0]; String p2=split[1]; String p3=split[2]; As you can see, the code separates the string into 3 words that are stored in the...
asked by 10.12.2017 / 05:23
0
answers

Help with Data Source OLEDB

Hello, good morning, my colleagues, I am trying to create a connection string through a program. The problem I have is that when I add the string and I tell the application to connect it gives me the following error. It is not a valid file na...
asked by 05.12.2017 / 17:18
1
answer

Problem with character '\ n' when interpreting a date

Dear, I have a code to change dates of type string in a text file to a list of dates of type datetime : import datetime as dt import workdays Holidays = open("C:\holidays.txt").readlines() print (Holidays) dates_list = [dt.dateti...
asked by 22.11.2017 / 16:59
1
answer

externalizar strings java

Let's see if someone can give me a cable. I have a huge java project and I would like to know if there is any way to outsource all String to constants of all *. java files (Eclipse) Source - Externalize string only does it in a file an...
asked by 18.11.2017 / 03:13
1
answer

Show only part of the Iframe

I want to show, from the iframe that contains the page, only the part where the random string generated by it is. <iframe src="https://www.random.org/strings/?num=1&len=12&digits=on&upperalpha=on&loweralpha=on&uniq...
asked by 16.11.2017 / 22:53
1
answer

Compare a datarow with a string

Good morning I have the following code for the generation of an excel file in c # int i = 5; int f = 0; foreach (DataRow Row in DS.Tables[0].Rows) { f = f + 1; // Asignar los valores de los registros a las celdas HojaExcel.Cells...
asked by 23.10.2017 / 18:15