937 Topics

Member Avatar for
Member Avatar for hanzo2001

Hello I have been trying to get past certein exercises in Pascal but for some reason I always run into problems that I don't understand. I have the following (synthesized) TYPE Triangle = RECORD x, y, z : word; END; Triangles = ARRAY OF Triangle; {more code} TriangleSize : integer …

Member Avatar for hanzo2001
0
567
Member Avatar for MikalT

I am trying to open an instance of Excel 2007 and load some text into a new file's cells (such as a list of something) through my Delphi4 program. I have already tried the ShellExecute and ComObj (variant) methods. ShellExecute works fine on the Windows XP platform, but not on …

Member Avatar for pritaeas
0
195
Member Avatar for DelphiGuy

Basically I have a Delphi application which downloads some data on run time, it basically executes Form.OnCreate; and then ENABLES a TTimer component to do the downloading. This has been working fine for me as at least the user sees the interface whilst it's loading but now I have a …

Member Avatar for pritaeas
0
505
Member Avatar for turbomen

Code a decision using an IF, THEN, ELSE statement (2 branch decision) Code a one branch decision using a null else statement The following is my answer: [CODE] program Negatives; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var balance, posNeg:integer; begin randomize; writeln ('Generating your bank balance'); writeln ('Please wait .....'); sleep …

Member Avatar for htir
0
205
Member Avatar for cmicolis

In other threads I read that Delphi is not prepared, as a net for today, but the comparison was made on VCL in Delphi 7. Actually, the latest version of Delphi and its library is XE3 is FireMonkey I had seen the comparisons between C # and Delphi. I try …

0
158
Member Avatar for niobi

Hi, I've written a program in environment DELPHI 7. This file is inserted in a launcher that I've sent to my client; he has installed then the file.exe on its computer (SO: VISTA/7). My procedure works leaning to a simple text.file, but it must be before created at root (usually, …

Member Avatar for Reverend Jim
0
272
Member Avatar for trashed

Hi all. I have a radio group with a bunch of possible selections. User has to select one of the options in order to go on. Is there any faster way than a for loop iterating through the single buttons to verify one has been checked? Thanks

Member Avatar for DelphiGuy
0
125
Member Avatar for TerenceZ

I have a Delphi 2010 DLL using AnyDAC (version 6.0.2 (build 2653)) TADTable components. When I SetRange on any table in a PostgreSQL database, I get "Assertion Failure" error. This only happens in the dll - copying the code to a simple exe, I don't get the error. I am …

Member Avatar for pritaeas
0
159
Member Avatar for spj-Athlon

I want to control an external program from Delphi, so I spawn a process using CreateProcess. Based on ideas I adopted from Neil Rubenking, I then create a menu tree using TTreeView. The items in this tree are clickable, and clicks can also be emulated by me sending keyboard events …

Member Avatar for pritaeas
0
240
Member Avatar for trashed

Hi all. I'm creating a cxDBgrid at runtime and I need to set all the cells in a column to be TcxSpinEdit (because I'm then exporting the grid to excel and I want the number format to be preserved). How can I do it? Thanks!

Member Avatar for pritaeas
0
73
Member Avatar for PeterVrist

Hi there. I'm having a strange problem. I have a TTimer on my main form that should trig 500 msec. after the form is created. It works fine when I run from IDE, but when I run it on other W7 PC's the main form is created, but the timer …

Member Avatar for PeterVrist
0
88
Member Avatar for bodazhao

hi i'm a beginner for C#, i have learned some of delphi and want to start learn some basic of C#, so i want make this app where it generates random number, can people help me get started with the code, it will help me alot the app is simple, …

Member Avatar for Mike Askew
0
198
Member Avatar for Krefie

Hey Hey I have found that in certain instances breakpoint just dont cut it for me...let me explain: The current program I'm working on in Delphi Codegear has some 2 mil lines of code under a button click, not bad coding btw, just a lot of fuctionality. Now, the program …

Member Avatar for pritaeas
0
226
Member Avatar for KE50

Hello All, I have been wondering how possible is it to have an application that would run a php application that would be used for making the database updates as well as handling the business logic while on the front end, have delphi forms So The form will be used …

Member Avatar for pritaeas
0
684
Member Avatar for finalist

I need Delphi 2011 XE code for editing an Excel file. If there is found a text in a row of column A of the Excel file, to change the number of the same row in column B. That's all I need. Thanks!

Member Avatar for pritaeas
0
138
Member Avatar for richasr1

Im having a bit of trouble converting the delphi code below into c++, i'm sure I need to use a Switch statement but I seem to be getting it wrong. Basically, I have 6 panels mounted on a larger Panel, each caption will contain a random number. A button then …

Member Avatar for IvanC
0
560
Member Avatar for pritaeas

The `ReplaceStrings` function replaces all strings in `APatterns` found in `ASubject` with the value in `AReplacement`. As an example, I added the `RemoveStrings` function which replaces everthing with an empty string, thus deleting all strings found. Usage examples are in the XMLDoc comments. A good test will be to rewrite …

Member Avatar for pritaeas
0
283
Member Avatar for Appjacker

Working on a program that needs to open a file, read the contents which is a number, save the content as an integer in the program, edit the number by one and then save in the number in the file once more.

Member Avatar for Appjacker
0
436
Member Avatar for alenan

Hello friends, I have a task to write some data on the chosen memory address location, using ACR38 SAM Smart Card Reader and SLE5542 card. To test reading and writing processes I have downloaded ACS Simple PC/SC Demo (Borland Delphi 7) from http://www.acs.com.hk/index.php?pid=tools. (I have Win7). My problem is that …

0
25
Member Avatar for Qazinix

I have recently been working on a project that requires the use of vertical text within the first row of a Stringgrid. When I change the drawing style of the Stringgrid to gdsThemed, the vertical text displays , however the text is also displayed horisontaly accross the cell. Here is …

Member Avatar for pritaeas
0
1K
Member Avatar for Simon180

I been searching the net for demos on how to stream live images or video over the net i found a few examples but there were no good not clearly commented so i did not understand how things worked. Basically am after a simple but good way to send a …

Member Avatar for Qazinix
0
169
Member Avatar for Ritesh_4

Hello, anyone can help me with the conversion of single quotes in a string to double quotes? Am new to Ruby programming and still learning around on how to use it properly. I have an example in Delphi, which I want to make compatible with Ruby: function ReplaceSingleQuote(AText: String): String; …

Member Avatar for Ritesh_4
0
141
Member Avatar for pritaeas

I found that there is a difference with the drawing of a custom bitmap brush, when I subclass TGraphicControl versus TCustomControl. The expected behaviour occurs when using the TCustomControl descendant. Each paint starts with the brush in the same position, no matter the location of the control (top-left). When using …

Member Avatar for pritaeas
0
239
Member Avatar for AKJo

When I print a document from my Delphi 2007 program I quite often get a message "Printing in progress " and printing is aborted. Only part of the page is printed,not always identical part,but close. When closing the message I get "Access violation at address 004FEEC5 in module........read of address …

Member Avatar for AKJo
0
2K
Member Avatar for berniefitz

Hi there, I am currently struggling through trying to figure out why a statement in my source code isn't being executed when running the program. The code is as follows: taxableValueDifference := previousTaxableValue - newTaxableValue; grandTotalTVDifference := grandTotalTVDifference - taxableValueDifference; XLWorksheet.Cells[row, 7].Value := XLWorksheet.Cells[row, 7].Value + taxableValueDifference; The first and …

Member Avatar for berniefitz
0
149
Member Avatar for jony90

Hi Is there anyone who could help to figure out how link regexbuddy to Delphi 7SE?

Member Avatar for pritaeas
0
93
Member Avatar for metaxx

Hello all! I have an old program from 2002, which was coded in Delphi 7. Now i would like to rewrite the whole program, and expand in Visual Basic. But, i am just learning the language, and it is very difficult to me after Delphi, so i would like a …

Member Avatar for Sahil89
0
175
Member Avatar for KE50

Hello Am running into a problem on how to store the TFont properties of a memo (or any component at that) to a database Please help.

Member Avatar for KE50
0
301
Member Avatar for redrobby02

Hi I am using jedi visual code libary with rad studio xe2. I have a question about using TJvImage. When i place an image on my form and add all the correct image states to JvImage1.Pictures if i disable the control and then test my project, the image is not …

Member Avatar for pritaeas
0
142
Member Avatar for getnit

Hi, I am porting Delphi project to WPF. I was using SDL Delphi Component Suite from [url]www.lohninger.com[/url][^] (Math pack & Gui Pack) for the engineering drawing graphs in Delphi. Math Pack - [url]http://www.lohninger.com/mathpack.html[/url][^] GUI Pack - [url]http://www.lohninger.com/guipack.html[/url][^] Can anyone suggest similar libraries in WPF environment?? Any suggestions will be highly …

Member Avatar for pritaeas
0
105
Member Avatar for getnit

Hi, I am porting Delphi project to WPF. I was using SDL Delphi Component Suite from [url]www.lohninger.com[/url][^] (Math pack & Gui Pack) for the engineering drawing graphs in Delphi. Math Pack - [url]http://www.lohninger.com/mathpack.html[/url][^] GUI Pack - [url]http://www.lohninger.com/guipack.html[/url][^] Can anyone suggest similar libraries in WPF environment?? Any suggestions will be highly …

0
69
Member Avatar for DesignGhosts

Hi there, I am trying to apply a Manifest file to my delphi application so that it can run with administrative permissions, I have been following [URL="http://delphi.about.com/od/delphitips2009/qt/delphi-vista-registry-run-on-startup.htm"]this Tutorial[/URL] part Faking UAC Rights - How to Request Execution Level. I have got to step 6 where I start getting problems, I …

Member Avatar for DesignGhosts
0
2K
Member Avatar for DelphiGuy

Hello, basically I want to have two TImage components, one I will use and using the Bitmap tools in Delphi I will create a background. In the second TImage I will create objects which move around the custom background but I still want the first TImage to be visible. The …

Member Avatar for pritaeas
0
471
Member Avatar for Ritesh_4

Hello, I need advise on the software to use to write a mini program which can be used to monitor the CPU temperature of a computer. The program to be written will also need to control the fan speed whenever needed. Which among the following can be used to interact …

Member Avatar for tungnk1993
0
170
Member Avatar for AKJo

An application from Delphi 1 (16 bit) has been transferd into Delphi 2007. The main form is always shown behind all other forms, whatever I do. How can I get the normal action from the form, so it is shown on top when it is active. Thanks in advance

Member Avatar for DanHamm
0
1K
Member Avatar for DelphiGuy

Heya guys, basically here is some code for a simple example program: [CODE] unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TForm1 = class(TForm) img1: TImage; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; …

Member Avatar for DelphiGuy
0
2K
Member Avatar for TF401

Hi, I want to know what Windows language can make ALMOST all sorts of automations like : [I]- sending keys, to a focused window ; - sending mouse clicks to specific coordinates in a window ; - finding if a window exists, by name ; - set it to be …

Member Avatar for TF401
0
222
Member Avatar for RussCA

I bought a Wacom Bamboo Pen Graphic Tablet. The software which came with the tablet is way below my needs/expectations. I found some sample prgrams from Wacom that require Microsoft Dev Studio C++, which I do not have. But I DO have Delphi Pascal 2007. Does anyone know of any …

Member Avatar for dangerstick
0
408
Member Avatar for Krefie

hi Guys/Gals OK my question, it seems complicated why I want to do it this way but I have my reasons ^_^ I have 3 Forms, FormBlue and FormRed and FormFunctions Now, the code in FormFunctions e.g. **** uses Blue, red **** FormBlue.label1.color := clBlue; FormBlue.edtBox.text := 'Bla'; OK so …

Member Avatar for Krefie
0
203
Member Avatar for heatdav

Hi. I'm not sure if Delphi can do this, but I'm trying to create a variable that I can create once in the code and can't be changed, after its created. On the surface, it looks like I want a const, but I'm trying to create a variable which is …

Member Avatar for pritaeas
0
76
Member Avatar for Aleksej

Hello everybody. I hope I'll find help here. I didn't know where to put this topic: here, or on php or delphi forum. Because I don't know from what to start. I have a lot of data stored in Word document. Over 1500 pages. And I want to make a …

Member Avatar for ChrisPadgham
0
117
Member Avatar for Fireprufe15

I am making a small game, just to sharpen up my Delphi knowledge before school starts again, and also to show of to my friends. So in this game I have five integers and I need to check if at least three of them equal each other. How would I …

Member Avatar for pritaeas
0
139
Member Avatar for Morten Brendefu

Dear enlightened ones. First of all. I am using Delphi 9. My code compiles and run with no error at all, still I am confused about the structure window in the Delphi window. It tells me that I have redeclared some identifiers. The thing is that I have a few …

Member Avatar for pritaeas
0
1K
Member Avatar for Neub

Hi, I'm looking to write a program that sets and gets responses using SNMPv1. I will be using Borland Delphi v7 or 8. I have been using PERL prior to looking at Delphi but I have had problems setting two OID's and sending them in the same packet rather then …

Member Avatar for pritaeas
0
107
Member Avatar for OASys1

Hello! Now I am trying to make selection of Customers easier for my user. My user's business involves making deliveries on [B][I]routes[/I][/B]. Every customer is assigned a route number, which references the route in the route table. In my form I want to have [B][I]two list boxes[/I][/B], side by side. …

Member Avatar for ChrisPadgham
0
560
Member Avatar for redrobby02

Hi i need to read the last 14 Entries made into a typed file and then list the entries in a StringGrid so i can copy them to label captions later. I am a little unsure how to write the Code to loop for the last 14 Entries. the current …

Member Avatar for Morten Brendefu
0
197
Member Avatar for Morten Brendefu

Dear knowledgeable ones. Some time ago I made a few of my routines kind of universal, and I wonder if there is any way in Delphi (My version is Delphi9) that can be used to reuse this code in example below. As you see, the two procedures are almost identical, …

Member Avatar for pritaeas
0
284
Member Avatar for Morten Brendefu

There are many places on internet for great help regarding many things. Proper implementation of really fast routines for sorting data however is not common. I am not claiming these routines to be the fastest around, but their ease of implementation and use may make them welcome. As a thank …

0
247
Member Avatar for alvin_aldrich

Hi I need help on converting the sample c++ code. Can someone please help. Any help would be greatly appreciated. :D struct sample { int type; long arg1, arg2; }; struct sample sampletable[2][3] = {{{ 1, 0, 0 }, { 2, 0, 0 }, { 1, 0, 0 }}, {{ …

Member Avatar for Sten Ove Larvin
0
437
Member Avatar for Morten Brendefu

In my Delphi9, I have the ability to "Shrink" complete procedures and functions so that only the first line is visible. There is a small + or - at the beginning of first line of a routine, and when pressed, the code is 'minimized' or 'maximized'. I find this to …

Member Avatar for pritaeas
0
266

The End.