Posts by user2254936 • 185 points
15 posts
-
1
votes1
answer22
viewsQ: Regex to get result from above line
I have the OCR below and would like to get the result in regular expression. Of: 1505 - ADMINISTRACAO DOS PENSIONISTAS DO IPREV, above the word CPF. I thought of using the CPF as a parameter,…
regexasked user2254936 185 -
1
votes1
answer42
viewsQ: Get value 3 lines after given word
I have the OCR below and I need to get the value 254.878,00, in the regex I did is picking the value 8.571.962,06. By the word OUTRAS INFORMAÇÕES would be ideal because the text is bold and always…
regexasked user2254936 185 -
1
votes2
answers312
viewsQ: Regex catch value between two words
I need to take the amount 62.715,90 between the words TOTAL and DEDUÇÕES. In the OCR is the line break according to the text below. I’m using Regular Expressio Design software. NOME: TESTE DE SILVA…
regexasked user2254936 185 -
1
votes2
answers255
viewsQ: Regex take value from previous line
Text the text below and would like to pick up the value of the line above the word "OUTRAS INFORMAÇÕES", in this case the value 8.571.962,06. I did it this way, but I’m finding it very vulnerable:…
regexasked user2254936 185 -
0
votes1
answer95
viewsQ: Problem with selecting tabs
I have two tabs, one that shows my macros together and one to show the sent ones. The macros together are already selected by default and in the Page Load has the method that loads the corresponding…
-
3
votes3
answers13033
viewsQ: Split to separate part of a string considers first separator
I have the following text:: _2910_0908_401 _600_ERV__P_119552_GUARITA ERV WITHOUT POWER RADIO INOPERAN_TE SEMAFOROS P TRENS AND VEICLS APAGADOS_PSG TRAIN C FLAG SIGNAL BY GUAR_ITA there use the…
-
0
votes1
answer87
viewsQ: How to define data that will be shown in gridView
I have this user class ADO, where I select to return only: Registration, Name and Accesses and return in a gridView. public List<Usuario> ObterTotalporMatricula() { var lista = new…
-
1
votes1
answer4703
viewsQ: Conversion is not valid
public int ObterTotalAcessos() { int obtertotal = 0; using (var connection = ServiceLocator.ObterConexao()) { var command = connection.CreateCommand(); command.CommandText = "SELECT SUM (ACESSOS)…
-
1
votes1
answer566
viewsQ: Load Gridview with variable data
I have 3 variables whose values are changed within a loop for. What I’m trying to do is take these values that are obtained from the variables and load them into a Gridview. Here’s what I tried to…
-
0
votes1
answer130
viewsQ: Converting split expression to C++ to C#
I have the following condition in C++ and would like to move to C#. The problem I’m having is with the function div error: The name 'div' does not exist in the Current context if (quant > 0) {…
-
2
votes2
answers692
viewsA: I cannot call Javascript function in textbox
I decided as follows: onKeyUp="MascaraData(this)"
-
0
votes2
answers692
viewsQ: I cannot call Javascript function in textbox
I have the following java script function to format my date fields: function MascaraData(data){ if(mascaraInteiro(data)==false){ event.returnValue = false; } return formataCampo(data, '00/00/0000',…
-
2
votes2
answers9820
viewsQ: Character string not recognized as valid datetime
protected void ButtonPesquisar_Click(object sender, EventArgs e) { var _macro = new LFSistemas.VLI.ACTWeb.Entities.Macro(); var macroController = new MacroController(); var itens =…
-
2
votes1
answer4343
viewsQ: Query works in the database but not via code
using (var cnx = new OleDbConnection(new AdministradorDAO().conexao)) { var sql = @"insert into usuarios(matricula, nome, senha, nivel, maleta, email) values (@matricula, @nome, @senha, @nivel,…
-
0
votes2
answers336
viewsQ: I’m having difficulty returning my ID using nextval, to later do the Insert in my table
I’m having difficulty returning my ID using nextval, to later do the Insert in my table OleDbConnection cnx = new OleDbConnection(new AdministradorDAO().conexao); cnx.Open(); string seq = ("select…