Category "delphi"

How do I use Not in a If statement with more than one condition

Working on a old legacy code using VB or delphi, do not know for sure. I am trying to write-- if itemA does not equal 111 OR itemA does not equal 222 then futu

EInsufficientRTTI exception with message 'Insufficient RTTi available to support this operation'

Trying to convert an object to JSON at run time, I'm getting insufficient RTTI Error. The object is: {$M+} {$TYPEINFO ON} {$METHODINFO ON} {$RTTI EXPLICIT METH

How to convert text data into an Image?

Once you load and image into a component, I can see that Delphi store the image data on DFM, . Example: object img1: TImage Left = 71 Top = 2 Width = 18

Getting closed caption data files from YouTube V3 API (in Delphi)

When you upload a video to YouTube, it automatically transcribes it and creates three different CC (closed-caption) files. They can be downloaded via the YT Cre

Decompiling Delphi .dcu to .pas

I'm running RAD Studio Delphi XE2. Something strange appears to have been done to one of my .pas files. Many of the lines from my unit1.pas have been replaced w

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