Questions tagged as 'function'

2
answers

How to call a var within a function

I'm trying to get a var that hize in a function and it's not working, it does not return what I want, which is only the var .. My html are the radiobutton : <div class="box-body"> <form m...
asked by 15.11.2018 / 15:22
1
answer

Eclipse - Reports BIRT - Aggregation

Greetings, if someone works with the Reports for Eclipse BIRT plugin, I have a question about the functionality of Aggregation , its uses are not clear to me, that is to say all its potential. I know that it can be used in a table to add a fi...
asked by 06.02.2018 / 13:37
2
answers

Function in PHP to replace words

I would like to see if you can help me with the following, I would like to know if it is possible to do a PHP function to replace some words. I am using str_replace as follows: $mensaje = "Hola!"; $mensaje = str_replace($mensaje, "Hola!...
asked by 05.05.2017 / 18:50
1
answer

Azure Functions tests with azure DevOps

I need help doing the tests with azure functions in azure DevOps the moment I commit, use the Microsoft guide to do the tests link . the tests run correctly and I upload the project to the repository. The problem arises at the time of doi...
asked by 20.12.2018 / 22:39
0
answers

FORMAT function used for numerical data does not work in sqlserver before 2012, alternatives

I'm using the format function to format a number, example: select format(45.123,'###############.00') print 45.12 select format(45.123,'###############.0') print 45.1 There is some way to do this in the previous versions of sq...
asked by 04.01.2019 / 21:33
2
answers

truncate decimal

* I WANT TO ROUND A NUMBER, BUT I WANT TO PUT A CONDITION * Math.Truncate(6.847457) //resultado 6 * But this truncates all the numbers I just want to truncate the 5 and the others if you round them *     
asked by 07.12.2018 / 17:22
0
answers

Delete a function or empty its contents

if ( window.innerWidth < 500 ) { lalo() } else { //aqui destruir funcion lalo lalo2() //ejecuta una nueva funcion } In summary what I want to do is that when the width of my browser is less than 500px a function is executed, but when...
asked by 24.11.2018 / 18:21
3
answers

Problem with route show function LARAVEL

After a lot of searching for google and not finding a solution to my problem, I decided to ask the wisdom of the internet: These are my routes: Route::get('/customers', 'CustomerController@index') ->name('customerIndex'); Route::get('/...
asked by 16.10.2018 / 17:09
0
answers

Error Code 1241. Operand should contain 1 column (s) function MYSQL

Create a function in mysql to work with a sequence the code of the function is as follows: FUNCTION 'fn_nextValue'(SEQNAME varchar(50)) RETURNS bigint(20) BEGIN DECLARE EXIST_SEQ INT; DECLARE CUR_VALUE BIGINT(20); SET EXIST_SEQ = (SELECT COU...
asked by 24.09.2018 / 19:24
1
answer

Convert parameter of a function automatically to string

I would like to create a function that has as parameters the name of an array and any string. The goal is that just by entering the names of both things, the function logue the index of the item, if it exists within the array (no need to use qu...
asked by 15.09.2018 / 15:32