Category "delphi"

Pascal 'Split' Function

I am coding a little program in pascal and I have run into a small problem. In other languages there is a function named 'split' or 'explode' to take a long str

Rtti accessing fields, properties and invoke method in record structures

Rtti accessing fields, properties and invoke method in record structures. I use the following record types, is from site type Nullable<T> = record pu

How to get value of an Output Parameter of a MySQL SP with TUniSQL

I have created a Stored Procedure in a MySQL DataBase that have 2 output parameters like this (for Example) : CREATE PROCEDURE `invite_user`(fUName VARCHAR(15)

How do I drag and drop from a TDBGrid?

If I set DragMode to dmAutomatic it prevents me from selecting rows. If I used OnCellClick to call BeginDrag it only fires on mouse up, which is not dragging in

How can I add a ListBoxItem programmatically?

I could only find how to create a ListBoxItem by clicking on the component -> Items Editor. How can we create programmatically a ListBoxItem using Firemonke

Delphi Twebbrowser change value of textbox.

I'm have some difficulty changing the value of a textbox in twebbrowser. I have tried WebBrowser1.OleObject.Document.getElementById('verification_control_0').va

Change the font colour of combo box in delphi firemonkey mobile

I have created application using Delphi XE7 firemonkey for Android mobile. In that i'm using Combobox. How can I change the font colour of the combo box?

Delphi FTP upload Access violation

I'm trying to upload a file .txt in my web space, but then the problems start, the code I tried is this: uses Windows, Messages, SysUtils, Variants, Classes, G

TWebbrowser / TEmbeddedWb : hide all messageboxes

I have an application that uses TEmbeddedWb to automate data scrapping tasks. Some web-sites show messages / popup boxes when my app navigates to it, and these

The application was unable to start correctly (0xc000007b)

I have a client/server app which I have been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a friend. When I build my app an

How to retrive Group mail box names for outlook profile using MAPI program?

Is there a way to retrieve added group mail boxes name for particular outlook profile through extended MAPI program?

Suppress Userproperty printing with outlook mail items

I need to suppress the printing of outlook userproperties programmatically added to a mail item. I had seen the following question that has a solution for dot.n

Delphi and Discrete Signals: Getting a fixed volume signal with fixed silence

This is a follow up on another question I already asked here How can I play a single tone or custom wave with Delphi? To make a long story short, I used MMSyst

Delphi TJvHidDeviceController : device cannot be opened

When I put an TJvHidDeviceController ( HIDKomponent from soft-gems.net ) component on my form and run the application I get an error message : device cannot be

Delphi Form Designer doesn't undo changes

In the Delphi Form Designer how do I undo changes. I press Ctrl + Z and nothing happens, I go to Edit -> Undo and it is grayed out. Am I just missing somet

Unable to programmatically close the application when validation error is found - edited

Based on the input from @David, I have edited my post to include more code (the Main procedure and two functions). The problem remains the same: I want to che

Delphi notification when a file gets updated

My app contains documents in its database. The users can open the documents in which case, the document gets saved to a temporary folder and gets opened on the

Which is preferable: Free or FreeAndNil?

What is the basic difference between Free and FreeAndNil? Is FreeAndNil = Free + Nil? When should I use Free and when should I use FreeAndNil?