Questions tagged as 'string'

2
answers

Error Syntax in Javascript eval

When trying to move from an object defined in backticks : var mi_objeto = '{propiedad1: 'a', propiedad2: 'b'}'; To a real object using the eval method: var objeto_real = eval(mi_objeto); I get a syntax error, which is fixe...
asked by 03.07.2017 / 19:49
1
answer

Problem with strcat

I have a problem with a program that generates a password, when I debug it comes out that the strcat sentence is skipped and I have no idea why it does that. void gClaves(tRegLista *reg,int i,int op) { int y; char auxclave[5]; char nu...
asked by 12.04.2017 / 13:47
3
answers

Problems formatting a String on date

My problem is that I receive a String element from my form, which can be of these two formats: fecha = "010117"; or fecha = "01012017"; And I need to format them to a date format valid as "01/01/2017" , I've tried to do it in sev...
asked by 05.01.2017 / 07:58
1
answer

Extract date as String Sqlserver C #

When I run a query on sql server from C # the fields of the date type are extracted as Date(1445580000000) when formatted in JSON. Although in the query specify the CONVERT to do so in yyyy-mm-dd , the same thing happened to m...
asked by 26.10.2016 / 23:28
1
answer

Save parts of a String to variables using regular expressions

I need to save parts of a String in different variables using a single regular expression, the string is the following and it can vary, but the structure will always be the same (this line is stored in the variable strLineProcess): Skype.exe p...
asked by 09.02.2017 / 12:29
1
answer

Doubt about strcopy

I would like to know what the real feature of strcopy is from the string.h library and what does this C method do, I think what is in a set of characters is copied into a pointer from another set of characters. But I would like to know exa...
asked by 28.04.2016 / 08:55
1
answer

Decompose a String into parts

maybe use the .split method? , well I want to separate all this text in parts with vb.net . text > {"error":false,"title":"Alan Walker - Diamond Heart (feat. Sophia Somajo)","duration":218,"file":"http:\/\/michaelbelgium.me\/ytconve...
asked by 26.12.2018 / 01:32
1
answer

how to use switch with an element of a string in qt?

What happens is that I am communicating by serial port and I receive a string (example a210223), but to sort the data in the interface I have to identify the initial letter and pass it by a switch to identify and display them. I divide th...
asked by 03.07.2018 / 16:09
1
answer

Subtract a string

I'm doing a project for the university that involves object oriented programming . I must create objects (with value string ) and add them, subtract them and multiply them. My problem is in subtraction. I'm supposed to iterate between eac...
asked by 14.05.2018 / 06:23
1
answer

How to convert elements of an array from string to float?

I have this array (values string ) locations = [ {lat: "-31.563910", lng: "147.154312"}, {lat: "-33.718234", lng: "150.363181"}, {lat: "-33.727111", lng: "150.371124"} ] and I want the array to be like this...
asked by 10.01.2018 / 16:15