Posts by Ricardo M.Souza • 588 points
52 posts
-
0
votes0
answers44
viewsQ: How to create a Property with a RECORD type - DELPHI
Good morning... I’m trying to create propertys for a form. Creating Property with strings types I know how to do, however I’m trying to create a Property of a RECORD type that already exists.. I…
delphiasked Ricardo M.Souza 588 -
0
votes1
answer148
viewsA: How to pass more than one parameter in REST DEBUGGER
Good afternoon. Resolved as follows 1 - In the ABA Request the address to where the Servermethod is 2 - In the PARAMETERS TAB is placed the Method called more BAR more PARAMETER more BAR more…
-
0
votes1
answer148
viewsQ: How to pass more than one parameter in REST DEBUGGER
Good afternoon.. I created a Rest Server -> File -> Others -> Delphi Projects -> Datasnap Server -> Datasnap REST Application. In Unit Servermethods I created a Function..:…
-
-1
votes2
answers89
viewsA: Error leaving the Formshow
Good morning @Edu Mendonça.. everything’s tight..?? : ) Dude.. From what I can tell, I think it’s as follows:..: obs 01) Within the Protocol CalculaSaldoHonorario when you open the Query is passing…
-
0
votes0
answers229
viewsQ: How to authenticate when consuming a SOAP service?
I need to make calls to a Web Service to send some information. I did it this way: I started a Winform application I imported the address that became . WSDL in the project I imported the classes and…
-
0
votes1
answer56
viewsQ: FMX and Styles - Put a unique Style for the whole project
Good afternoon.. In a VCL project we select a Style and it stays in the whole project. I would like to know if it is possible to use a style throughout the FMX project. I know if putting a styleBook…
-
3
votes1
answer48
viewsA: Problems with data registration with Combobox listing and function
Good morning kingarthur.. Everything straight?:) Man. If I understand correctly what happens is as follows..: cmbNomes = Tcombobox... correct? In the line below Voce wants to put inside the combobox…
-
1
votes2
answers220
viewsA: Clientdataset for Excel
Good morning henriquew.. Everything straight?? :) Dude I think just change the ORDER of commands.. First Voce FORMAT THE CELL ObjetoExcelApplication.Range[Cel,Cel].NumberFormat:= '@';<br> Then…
-
0
votes2
answers323
viewsA: Delphi - Find and Save Text Lines
Good morning Guilhermeths.. Everything straight?? :) Apparently it’s simple.. One of the ways that could be done would be so..: Var Var_X,Var_Y,linhasarq : String; begin if OpenDialog1.Execute then…
delphianswered Ricardo M.Souza 588 -
3
votes2
answers113
viewsA: Tabstop de Radiobuttons independent of the Checked property
Testing this situation here I solved as follows: In the ONSHOW form I put all the Radiobuttons.tabstop:= False and on the onclick of each I put the same code Radiobutton1.Tabstop:= False. That way…
-
0
votes1
answer232
viewsQ: Return a Result set from a Mysql storeProcedure
Good afternoon. I have the following storedprocedure in Mysql..: DELIMITER $$ CREATE DEFINER=`ricardo`@`%` PROCEDURE `teste2`() BEGIN Select * from Tabela; END As I call this storedprocedure by…
-
1
votes0
answers431
viewsQ: Create function that receives an XML in the SOAP Server (Delphi)
Good morning. Reading several files, tutorials, etc on the net, I managed to understand and develop a SOAP server (Delphi 7 and Tokyo). I created several functions to receive values and return…
-
0
votes1
answer317
viewsA: XML Mapping Tool Delphi Tokyo
I read an article on the net that the programmer used the XMLTransformProvider in the Delphi Tokyo instead of using the XMLTransform (equal to Delphi 7). So I changed the component and the code went…
-
0
votes1
answer317
viewsQ: XML Mapping Tool Delphi Tokyo
I would like to know the correct way to map an . XML by Delphi Tokyo with xml Mapping tool and read in ClientDataSet. Using the XML Mapping Tool with the Delphi 7 I can do the mapping and read the…
-
3
votes1
answer274
viewsA: Clone Dataset (Tzquery) in Delphi 7
Good morning Rafael. If I understand correctly what you want.. : ) one of the solutions would be to use a direct sql command.. It would look like this ..: Insert into TABELA_DESTINO Select * from…
-
3
votes1
answer514
viewsQ: webservice Rest to receive an xml in Delphi
Good afternoon. A client wants to send me an . xml file I created a Datasnap Rest Application project. I have implemented the method as follows for JSON function…
-
0
votes0
answers292
viewsQ: Create Tzconneciton in run time
Good afternoon I’m using Delphi 7 with ZEOS. I need to create a connection in RUN TIME. I’m trying to use the following code Var Connection : TZConnection; begin Connection:=…
-
2
votes1
answer547
viewsA: Open word file by Delphi
We don’t use the olecontainer, but for our needs here when we need to leave the document readonly for the user we use the following line..: OleContainer.CreateObjectFromFile(vNomeArquivo, false);…
delphianswered Ricardo M.Souza 588 -
3
votes2
answers1095
viewsQ: Declare const array of Variant
When I need to use array const I usually do so: var Campos : array [0..2,0..1] of string = (('campoa','AAA'), ('campob','BBB'), ('campoc','CCC')); I would like to declare the above const as of…
-
0
votes1
answer202
viewsQ: Difficulty creating a Property for a CLASS
I am using DELPHI 7 trying to create a class with the following structure Type Tclasse_Envio_JSON = class(TThread) private fCampos: Array of Variant; fIdade : Integer; fNome : String[40]; function…
-
0
votes2
answers448
viewsA: Hide component in first record (Dbctrlgrid)
Dude I did a test here and I managed to hide a component as follows procedure TFo_Cadastro_Generico.DBGrid1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); begin Me_Busca.Visible:=…
delphianswered Ricardo M.Souza 588 -
0
votes1
answer65
viewsA: dblookupcombobox delhpi 7
Good morning Marcelo Okada. Face with the 7 I "think" that you can’t do anything DIRECT with the component. But you can do a GAMBIARRA with SQL. See the Example I give you with the city table.…
-
0
votes1
answer246
viewsQ: How to create a modal correctly to change data using W3
I would like to know how to implement a modal to receive the change data. I am using the W3. In Image Below when the user presses the ABSENT button has to open a MODAL with the information of the…
-
0
votes1
answer72
viewsQ: Execute a code first of all
Good morning. When I press any MENU, BUTTON, link, etc everything works correctly and perfectly, however, there are hours that the code to be executed takes, sometimes a little, sometimes more than…
-
0
votes1
answer339
viewsA: Select Group with PHP
Good morning @Isadora Almeida I put here the way you did and I really couldn’t get the combo filled. Unfortunately I can’t tell you why your code doesn’t work. That way you did I didn’t know... :)…
-
2
votes2
answers376
viewsQ: Is it possible to concatenate a jQuery selector with a variable?
I have the following code inside a javascript function that is inside a page . php: if (indice_da_aba == -1) { window.alert('não existe ABAS AINDA'); } else if (indice_da_aba == 0) {…
-
0
votes3
answers722
viewsA: How to enter birth date in comic book?
Good morning I do as follows the INSERTION of values in DB. (mysql) $pid_paciente=$_POST['pid_paciente']; $pid_horario=$_POST['pid_horario']; $pdata_consulta = $_POST['pdata_consulta']; $sql = "…
-
0
votes0
answers55
viewsQ: Click the button running as many times as you have tabs
I have the following situation: <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#segunda_tab" ><?php echo $array_dia_da_semana_s[0]…
-
1
votes3
answers197
viewsQ: Press button and appear "CURSOR/ or ANYTHING" until operation is finished
I have the following code in javascript and ajax: function marcar_consulta(id_paciente,id_horario, data_consulta ) { $.ajax ({ type:'post', url:'insert_consulta.php',…
-
-1
votes2
answers419
viewsQ: how to correctly write php inside javascript
Good afternoon.. I have the following situation: <?php $array_dias_da_semana = array("domingo", "segunda", "terca","quarta","quinta","sexta","sabado"); $zebra = 'domingo'; ?> $(function() {…
-
2
votes2
answers39
viewsA: Create variables with database data?
I usually do like this: while ($row=mysql_fetch_array($sel_exclui)) { $campo_01 = $row['campo_01']; $campo_02 = $row['campo_02']; $campo_03 = $row['campo_03']; } Where the variable $campo_01…
-
0
votes2
answers1560
viewsQ: How to know which tab is selected
I have the following situation <div class="container"> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-10"> </div> </div> <ul…
-
2
votes2
answers417
viewsQ: How to make Tables with different ids for Function javascript
Good afternoon I’m setting up a table with the following code <table align="center" cellpadding="10" id="user_table" class='table table-striped table-advance table-hover'> <tr>…
-
1
votes1
answer517
viewsA: Auto complete Dblookupcombobox
I think the dblookup object will not perform the behavior you want. But according to the first paradigm of the programmer that says the following: "Good code is the one that works" To solve this…
-
-1
votes2
answers4429
viewsQ: Go back to PREVIOUS screen without losing "INFORMATION" from previous screen
I have Screen 01, I do a search and return the result on the screen itself. Each line of the returned result contains a button. The button sends me the SCREEN 02. On screen 02 I do a search and the…
-
0
votes2
answers163
viewsA: How to add items to an array correctly?
Good morning to all In fact the problem was what @Marcelo de Andrade said : Objects and reference My vote goes to him, however what he posted I "THINK" that this with a small mistake of logic. If…
-
1
votes2
answers163
viewsQ: How to add items to an array correctly?
I’m trying to create arrays with days of the week. "Apparently" seems to work: $array_dia_da_semana = array("DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO");…
-
0
votes2
answers64
viewsA: Doubt - SQL Server Query
Good afternoon @Renan Bessa How do I in sql server to get the records larger than 10 days from the current date TO CATCH ALL DATES LONGER THAN 10 DAYS WOULD BE : SELECT * FROM clinica.teste where…
-
0
votes1
answer483
viewsA: Using Tdbcombobox compounding
Good night Tiago By the code you posted the problem of the combobox appearing the last record is because you made a while not eof. So when it comes to the end in the while it’s the last region…
-
2
votes2
answers2149
viewsQ: include with parameter?
There is include with parameter? I have a page .php containing the following code: <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab"…
-
0
votes1
answer897
viewsA: javascript input
Good morning to all.. I leave here the solution to the proposed problem. In the table.js file another function was created that was placed below: function…
-
-1
votes1
answer897
viewsQ: javascript input
I have a table with the INCLUDE button containing the following code: <td align="center"><input type="button" class="add" onclick="add_row(<?php echo($id_usuario); ?>, 0);"…
-
1
votes1
answer1880
viewsQ: How to take the horizontal line from the table in bootstrap
Even reading several articles on the net about table https://v4-alpha.getbootstrap.com/content/tables/ https://www.w3schools.com/bootstrap/bootstrap_tables.asp I couldn’t get a question out. How to…
-
0
votes2
answers356
viewsA: Swift 3 - How to make an alert appear after and load screen?
Good afternoon (again :) Matheus.. Another way to do what you want is to add viewDidAppear: override func viewDidAppear(_ animated: Bool) { let alert = UIAlertController(title: "Atenção!", message:…
-
0
votes2
answers356
viewsA: Swift 3 - How to make an alert appear after and load screen?
Good afternoon Matheus :) I put your code here and it’s really giving that message... Not to stall too much I’ll spend as I do: func Mensagem(_ strTitle : NSString, strBody: NSString, delegate:…
-
0
votes3
answers106
viewsA: Different layout for landscape
Good morning Danilo... Man I hadn’t even noticed the iPad... In fact if you notice the first two images I posted I normally not working with AUTOLAYOUT enabled... When I enabled Autolayout I saw…
-
1
votes3
answers106
viewsA: Different layout for landscape
Good morning.. Another way I realized now is what I show in the image below In the circled part below (bottom left corner) to place the viewcontroller in landscape mode. And to illustrate the first…
-
1
votes3
answers106
viewsA: Different layout for landscape
Good morning.. :) To change the measurements of the storyboard I usually do the following: first - I select the Storyboard. 2nd - I go on the RIGHT side and select the icone Show the size inspector.…
-
0
votes1
answer256
viewsQ: Change font size of pickerview
Good afternoon. 09/05/2017 I have the following pickerview: As you can see right away the first item of the two lists does not appear the whole name. I guess because of the size. On the left side…
-
0
votes3
answers160
viewsA: How to put more than one pickerView in just one Viewcontroller
I’m new to this Swift business... and I’m also picking it up for set up a pickerview. I took your code and... What you demonstrated really happened. Then I changed the arrays to String let arrayAnos…