1,899 Topics

Member Avatar for
Member Avatar for EnderX

I'm working on a Delphi program designed for use with an Access database. In addition to the onscreen output, however, my boss wants me to provide PHP reports for it as well. We have PHP installed on our servers, so that's good, but the database in question is installed on …

Member Avatar for Wolfgan
0
2K
Member Avatar for youngmoolah

Hi I am new to delphi and I am trying to add a new form to an existing MdiApp program which links to various SQL tables The existing buttons that move the user from one form to another have the OnClick event (CmdBeginTestingClick). This OnClick event automatically attatches the following …

Member Avatar for Wolfgan
0
365
Member Avatar for FlamingClaw
Member Avatar for nayay17

Dear All, Could you tell me how to complete this coding? so it can run like the program that I have attached. Cheers, [CODE] type node = ^data; data = record nama : string; ipk : real; {tipe data info} yudisium:string; next : node; end; linkedlist = record first : …

0
94
Member Avatar for Jaxneo

I have several output files (*.out) contain a lot of information. I would like to have a program can just sort specific data from each output file and save them to the same filename with txt extension file. While reading each line (from *.out) if you are on a line …

Member Avatar for Wolfgan
0
79
Member Avatar for Infidus

Hey there. I have a project that i am working on that goes along the lines of this: We have a program that records customers and dvds for a local dvd store. This program must be able to enter New Customers , Search Customer's , Modify Customer Details and Delete …

Member Avatar for Wolfgan
0
91
Member Avatar for AnkitaNegi

i have a TcxGridDBBanded column in delphi , which takes the value from database. the colindex property of all the columns is already set in the delphi form. now at run time if the user changes the order of the column, and try to open it again, the GridDBBanded returns …

Member Avatar for Wolfgan
0
87
Member Avatar for yossi321

Hi How can I protect/lock a drive from deleting files and format it ? Is there a way to hook a drive?

Member Avatar for yossi321
0
75
Member Avatar for agrarian

I have a form (Delphi 2010) that includes several data controls, including a DBImage. All these are hooked to a underlying MSSQL 2005 database and table. I'm using ADOConnection and ADO Table for ease of use. I need to include image data in this table, so I have set up …

Member Avatar for yousef.h85
0
217
Member Avatar for Noober87

Hi everyone, I have the following code to save the text inside an editbox: [CODE]var Data: TStringList; begin Data := TStringList.Create; try Data.Append(Edit1.Text); Data.SaveToFile(Savedialog1.Filename +'.txt'); finally Data.Free; end; end;[/CODE] And this code to load it to that editbox where i saved it from: [CODE]var Data: TStringList; begin Data := TStringList.Create; …

Member Avatar for Noober87
0
161
Member Avatar for serkankucuk

I have a Windows application. I want to convert windows app to website, but with no differences on code. How can I do this convertion, please help me?

Member Avatar for ennis
0
121
Member Avatar for mnmw

Check out my code on Pascal's triangle using C++. [CODE]#include "stdafx.h" #include <iostream> using namespace std; int pascals(int,int); int fact(int); int main() { int r,e,levels,space; cout<<"Enter the number of lines needed";cin>>levels; space = levels+1; for(r=0;r<=levels;r++) { // std::cout.width(space);//shape for(e=0;e<r+1;e++) { cout<<pascals(r,e)<<" "; } cout<<endl; space--;//shape } cout<<endl; cin>>r; return 0; …

Member Avatar for dohpaz42
-2
191
Member Avatar for vedantham

in cxgrid on right click on view there is a option set as default what dose it do?????

0
81
Member Avatar for cVz

Good day I'd like to find out how to change the color of a row on a page startup in Delphi 7 pro with an Express Quantum grid 6 What i am trying to achieve is this if Quantity in stock = >10 row color should be green... if Quantity …

Member Avatar for vedantham
0
1K
Member Avatar for Teseng

I'm using Delphi 2009, and I can't figure out how to preserve transparency when converting a TBitmap to a TIcon and assigned it as the cursor, its always square and has the white background. Can anyone tell me how I could draw to the bitmaps canvas, and convert the entire …

Member Avatar for Teseng
0
555
Member Avatar for Mithrandir85

hey there Everybody... I want to have a unit, without a form attached/declared, and have only a recorrd and a bunch of functions, though the functions dont neccessarilly have anything to do with the reccord... so my question is where do i put the public declaration? or do i do …

Member Avatar for Mithrandir85
0
107
Member Avatar for instinctfx

Howdy! Ive been working on an application now for number of months for a client and have developed a small application that uses a firebird backend (ver 2.1.xxxxx) Now, i managed to fix a permissions issue on Vista with firebird BUT when i run this same app with the database …

Member Avatar for instinctfx
0
154
Member Avatar for khipasi

Hi, I am trying to populate a listview with the data that is entered on the Edit box, but I am getting errors: Form1.Listview.Insert(0); Form1.Listview.Items.Item[0].Caption := Name{Name in the Diaolog Box) Please help.

Member Avatar for khipasi
0
98
Member Avatar for sbedford

Hi I am trying to create a delphi program to autoinstall other multiple utilities such as adobe reader, winamp etc. I am firstly wondering how to execute an external exe file. and also, is there a way to pass mouse clicks through delphi to this external program? Thanks Sean Bedford

Member Avatar for david Booch
0
323
Member Avatar for Adaltino

Hello! My service ([U]not windowed application[/U]) for winXP (32) creates a list of processes (like task manager) and setts every process to run in just one CPU in multiproccessor system. 1) when I try to get the [B]handle[/B] of the process I get error: "The handle is invalid". If I …

Member Avatar for Wolfgan
0
861
Member Avatar for skoff

Hi i just want to know how can i display the item i selected in a listbox into a memo? Example : I selected in my listbox Item : Banana When i click it in the listbox, Banana will be added in my memo. thank you

Member Avatar for Wolfgan
0
119
Member Avatar for ecostas

Hi. I'm still learning how to use dbExpress, after using Zeos and Delphi 5 for many years. I wrote a small program to import data from a MySQL database to another MySQL database totally different in terms of layout. It worked all right, though I'm afraid some of my clients …

Member Avatar for Sagar14
0
238
Member Avatar for revski

Hi i am looking to use a totally custom built UI with a piece of software i am writing in delphi. i have ofc seen this done many times in programs like itunes and windows media player etc, where the standard windows aero frame is not used... i have never …

Member Avatar for revski
0
176
Member Avatar for Muscipula

I remember the days when I programmed in assembler and managed to work very fast having complete control of my programs and not endlessly banging my head on the windows wall when dealing with the Microsoft side of my software. Below is an example of some code that is simply …

Member Avatar for Wolfgan
0
607
Member Avatar for Pascal123

Hi all, I have written a program in pascal, but am having problems remembering how to validate my code, the user is asked to enter a number, but they are only allowed to enter 1,2, or 3. How do i write the code so that if any other number is …

Member Avatar for Wolfgan
0
2K
Member Avatar for srianduma

hello i want to print my customers invoice in dos print. the customer is using roll paper. for tearing purpose i have ejected some part of the paper. for the next bill the printer should automatically bring the paper where it has been teared. what is the code. i am …

Member Avatar for Wolfgan
0
115
Member Avatar for suryakantb

Hi, I am sharing a tips on "Identifying Files From Their first 4 Bytes Or Magic Numbers" related to Delphi Sometime back I faced the task of having my application take file data from stream and save them on disk in their original format. Now, the tricky part was that …

0
92
Member Avatar for venuvasulu

What are the different posibilities of getting "Invalid floating point operation" in dephi applications?

Member Avatar for deyken
0
433
Member Avatar for jodhy

This is my code in watcom pascal, its sort of like trubo but ok so that i need my code to do it make it have a variable in there, that will be added and when the words are all taken up, it opened a new page(the winning screen) i …

0
93
Member Avatar for older3

I need to make a program, where must be function. I need to great 4*4 array and that array should be filled with random integers between 0-100. Function of the two 4x4 arrays can be provided and return it to the array, which has the largest sum. And then i …

Member Avatar for est69dog
-1
86
Member Avatar for MorrisL

I am trying to convert a piece of code into Delphi but fall down when it comes to this example : [CODE] void __stdcall GetBuffers( short **xBuffers, unsigned long nValues) { ....... memcpy(TargetA, xBuffers[0], nValues * sizeof(short)); memcpy(TargetB, xBuffers[1], nValues * sizeof(short)); memcpy(TargetC, xBuffers[3], nValues * sizeof(short)); memcpy(Targetd, xBuffers[4], nValues …

Member Avatar for BitFarmer
0
495
Member Avatar for jodhy

Hi, im making hangman in watcom pascal and i need some help i have counted how many letter the word is, but now i need to replace the word with something like *, so that it is hidden to the user, but when they guess a letter it turnes the …

0
56
Member Avatar for zelboka

need the solution for these [URL="http://light-bearer.nm.ru/0_help.jpg"]Click Here[/URL] need to be written into a code its for a friend of mine trying to finish class :) thank you very much

Member Avatar for glubbish
0
62
Member Avatar for jodhy

How can i randomize words that i have put into an array so for example if an array has the words: hi bye what how would i make it say a random one? THANK YOU

Member Avatar for jodhy
0
93
Member Avatar for glubbish

Hi all, When I click on the add button I get "exception class EdatabaseError with message 'DBedit2: Field 'RoomNumber' not found I am trying to get the max roomnumber to insert a new room max(roomnumber)+1 Its a fundamental hole in my knowledge here, on how to get a result from …

Member Avatar for glubbish
0
671
Member Avatar for jodhy
Member Avatar for FlamingClaw
0
159
Member Avatar for glubbish

I have been able to extract a single column with help here but now I want to get two, but the same process does not seem to work. [code=pascal] Procedure Tform1.showroom; begin adoquery1.close; adoquery1.SQL.Clear; ADOQuery1.SQL.Add('Select roomname,description from Rooms'); adoquery1.Open; end; procedure TForm1.FormCreate(Sender: TObject); begin ADOConnection1.KeepConnection := false; datasource1.DataSet := adoquery1; …

Member Avatar for glubbish
0
265
Member Avatar for Kesarion

I'm trying to translate a Pascal mouse movement algorithm to C++ but I'm not too good at it. The mouse moves to a position but when it moves again it only goes a small increment and crashes after a few more moves or if I move the mouse a few …

Member Avatar for iamthwee
0
407
Member Avatar for saravanan.cse
Member Avatar for glubbish

Hi All, I have cut this down to a simple example. The access file has a table called rooms which contains a description field of type memo I want to load this into a dbmemo (delphi 7) I run this by a button onclick event [code] procedure TForm1.Button1Click(Sender: TObject); begin …

Member Avatar for glubbish
0
222
Member Avatar for jodhy

How can i create a button in watcom pascal, that can be clicked which has a certain variable in it. the program then advances depending on what you click?

0
72
Member Avatar for Turtle85

I really need help in trying to understand what the "dat:table" is in this procedure, and how to translate it to Java. procedure Taylor(var dat: table ; cd: integer; h: real); begin for i:=2 to cd + 1 do begin dat[i,1] := dat[i,1] + (i-1)*h; x := dat[i-1,1]; y := …

Member Avatar for FlamingClaw
0
99
Member Avatar for jodhy

Can someone please give me code for hangman in watcom pascal please thank u this is for personal purposes only thank you

Member Avatar for TrustyTony
-1
89
Member Avatar for KE50

Hello All, I have been trying to send data to a pole display i.e. DigiPos WD202, I am trying to use the following code but nothing appears on the display [B]Procedure CSPortWrite(PortID, PortData : string); var f: THandle; NumberWritten : dword; begin NumberWritten := 0; //assigns the stream to the …

Member Avatar for KE50
0
407
Member Avatar for glubbish

I am looking for a way to extract an icon from a program and save it to a file, then load from the file and use again, keeping 32bit colors I have tried using ConvertTo32BitImageList() saving as file and stream When ExtractIcon() is used the icon is fine, I can …

Member Avatar for glubbish
0
117
Member Avatar for especta

Hi I have constant Byte Array like This: Array = 0102030405060708091011121314151617181920212223242526272829303132 and second Array not constant; Like This [01] Array 000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000 i need to calculate xor from first array (static) and secod array dinamic but controled by This value [01] if 01 then calculate xor only 1 byte …

0
50
Member Avatar for ebacci

Hello, I need to create a service application which can be started X times as a service. I used the following code: procedure TMyService.ServiceBeforeInstall(Sender: TService); begin if ParamStr(1)='-install' then IHotel := ParamStr(2) else IHotel :=ParamStr(1); IHotel := TRIM(AnsiReplaceText(Copy(IHotel,2), ' ', '')); if Length(IHotel) = 0 then begin Showmessage('Hotel name not …

0
87
Member Avatar for lukegw

I am trying to make an IP chat using TcpServer. As many people are behind a router, how would it be possible to connect to them directly? I know how to call up my external ip, and how to find out my internal one assigned by the router, but how …

Member Avatar for lukegw
-1
154
Member Avatar for lukegw

Everytime btnSendClick is execute, 2 messages will be added to the rich edit. The first needs to be of fixed values (BOLD, size 8 etc) The second needs to be changable by the user using a FontDialog box. This is my below code, but it doesnt quite work, it pretty …

Member Avatar for lukegw
0
193
Member Avatar for Lefty_AU

Hi Guys, Ive been trying to write an app to receive exports of songnames from a broadcast automation system it receives the export via TCP/IP for the most part it works however I cannot get it to rotate songnames around in an array [CODE] var export:array[1..175] of char; songs:array[1..8] of …

Member Avatar for FlamingClaw
0
101

The End.