Questions tagged as 'delphi'

3
answers

Is it the same to use .AsString as .Text to get the value of a field from a DataSet?

After seeing a certain code, I realized that they use this style: aStr:=tblAcct.FieldByName('Name').Text; It seems to work fine, but I had used it so far: aStr:=tblAcct.FieldByName('Name').AsString; I have used both when loading a TMem...
asked by 30.10.2015 / 00:54
1
answer

Call a procedure of the invoking class

I'm new to delphi / free pascal and I think I have a concept error, because I'm used to java and maybe you can not think about things in the same way. I hope you can help me. I am using Lazarus v1.6RC1. I have a class TControl in a...
asked by 29.01.2016 / 12:51
2
answers

Delphi - Center a label in a form at a certain height

Very good, I have the following problem: I'm trying to create a simple runtime form where TLabel is displayed, and I need them to be centered and at a certain height each. I have been able to center them correctly using TLabel.Align...
asked by 08.02.2016 / 16:22
2
answers

Access Violation Error while trying to consume a SOAP Web Service from a 64-Bit IOS

I have had a problem since March of this year and that is when trying to consume a Web Service done in C # from an App made in Delphi sends me a Access Violation whenever I call any method of that service. The web service unit was impo...
asked by 02.01.2017 / 16:46
1
answer

Create a component in FireMonkey

Well, I hope you can help me. Some time ago I have been using a component that I made in VCL for delphi 2010 that consists of a rectangle that changes color according to three states as shown in the attached image. With three additional graphic...
asked by 10.04.2018 / 01:25
1
answer

how to consume delphi dll in c #

I have a delphi function that I export as dll, here I leave my code: library MdEncDec; uses System.SysUtils, System.Classes, Bcrypt; {$R *.res} function EncryptWord( value: PChar ): ShortString; stdcall; export; var BCRYPT1: TBCRYPT...
asked by 07.11.2018 / 19:24
1
answer

filtering dates

I'm doing a program that filters dates from three tables in my database, the problem is when I do a search, it only shows me a table and not the three tables that I want. This is my code query.Close; query.SQL.Clear; query.SQL.Text := ('sele...
asked by 02.10.2018 / 01:46
1
answer

access properties of the class "Host" from grouped properties TPersistent

I am creating a custom control that derives from the TEdit class, I have included grouped properties that are in another class of type TPersistent, said properties need access to the properties of the class "host" that derives from the TEDit t...
asked by 28.06.2018 / 16:08
1
answer

Reading and Writing binary file of 7 GBytes

How can I read and write a binary file of more than 7 GBytes? The assign (f, 'xx' and the reset (f) work but when I am going to start the file path, the function eof (f) does not work properly, I understand that it is because the TFileRec str...
asked by 28.11.2018 / 22:46
2
answers

Problem accessing an object from one form to another in delphi

I have a problem with two classes in delphi, I have them in the following way unit uModuloDatos; interface uses FloguinUsuario; . . . . procedure TModuloDatos.DataModuleCreate(Sender: TObject); var ConEnc : String; pedro : TFormLoguinUsuario;...
asked by 31.01.2018 / 08:26