Posts by wesley luan • 581 points
15 posts
-
0
votes2
answers599
viewsA: Special characters in excel spreadsheet generated in Delphi
Try the following Sheet.Range['B4'] := WideString('M A T É R I A S - P R I M A S');
-
0
votes2
answers1047
viewsA: Using timestamp in different fields
In your Select you can create two "virtual" fields, one for time and one for date. Making a cast for date and another for time, from the original field(timestamp). In the Beforepost component event…
-
2
votes2
answers2617
viewsA: How to list objects of a deteminated class?
What you can do is use a Tobjectlist. You must instantiate the Tobjectlist and then you can add your objects in this list through the method Add. When you destroy Tobjectlist all objects added to it…
-
4
votes2
answers4192
viewsQ: Build and build. What are the differences and when to use?
In some IDE’s there are 2 options to generate an executable file: compile and effect a build. Both generate a new file executable from source code, ready to run. What is the difference between the 2…
-
8
votes1
answer981
viewsQ: What is the difference between the Height and Clientheight properties of a Tform?
In Delphi a form has 2 properties to define the height of the form: Height and Clientheight. However, what is the difference between the properties Height and Clientheight of a Tform?…
-
1
votes4
answers1944
viewsA: Run query that concatenates parameters (@p) in Firebird
In this case you should make one cast of the parameter to sweep: SELECT t.id || cast(:p as varchar(10)) || t.nome FROM Test t;
-
5
votes2
answers3408
viewsQ: Create trunk, branch and tag folders in Subversion in an existing repository
I have a project that is in a repository on Subversion, but the same NAY is inside the recommended folders: trunk, branch and tag. As if the folder the project is in is the trunk itself. I can…
-
1
votes3
answers2037
viewsQ: Suspend function in Firebird
What is the function of suspend in a Procedure in the Firebird?
-
0
votes1
answer1370
viewsA: Recover XML Txmldocument at runtime (Delphi XE3)
In the Create method parameter of Txmldocument you can’t pass Nil, must pass some object Tcomponent. You can use the Application , thus: Xmldoc := Txmldocument.Create(Application);…
-
1
votes2
answers1379
viewsA: Fortes Report + Masks
Here’s what I do, on Afteropen of the component Query I determine the mask of self Tfield. DataSet.FieldByName('CNPJ').EditMask := '99.999.999/9999-99;0;_'; DataSet.FieldByName('CPF').EditMask :=…
delphianswered wesley luan 581 -
1
votes1
answer633
viewsQ: Working with Autosize Form
I’ve got a hot guy with the property Autosize = True, and two Groupbox One in the middle and one in the bottom. There is a function that makes the bottom Groupbox invisible if it is visible and vice…
-
3
votes2
answers5427
viewsQ: How to extract blob files in Firebird?
I have in a table a field of type BLOB(BLOB SUB_TYPE 0 SEGMENT SIZE 80) where I store some binary files. I need to extract all the files stored in that table. Through Ibexpert in the "Data/Form…
-
5
votes1
answer2491
viewsQ: Differences in the dynamic creation of an object
When I create an object dynamically, for example a form, I do so: Formulario := TFormulario.Create(nil); try Formulario.ShowModal; finally Formulario.Free; end; What’s the difference in creating an…
-
3
votes2
answers1717
viewsQ: How do I convert multiple ". dfm" files that are in binary to text format?
I have in hand a legacy project that was developed initially in versions prior to Delphi 7, where it has a very large amount of Units(. pas) and forms(. dfm). I have a problem because like the files…
-
5
votes4
answers1842
viewsQ: How to know the Kb size of a string?
I have a string which will be saved on file xml, and this file cannot be larger than 500 kb. How can I identify the size of the string which I will save on file xml? When the string is saved in the…