1,899 Topics
![]() | |
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 … | |
Hello, friends! Can anyone help me to create a small application in PASCAL for a DVDs Rental Shop? This applications should be able to do : Add 25 films (title, gender, cod, status) Add 15 Costumers (name, sex, age, films rented) List films List costumers List rented movies and then … | |
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. | |
Hello again! I am trying to make a little game in pascal and I'm using graph. And it changes the background but when i'm trying to draw a black line it doesn't work. I don't know why. uses graph; var grDriver,grMode,ErrCode: Integer; procedure initg; begin grDriver := Detect; InitGraph(grDriver, grMode,'e:/bp/bgi'); … | |
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 … | |
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 … | |
I am new to programming and am having REAL trouble trying to output Pascal's Triangle (formatted into a triagle) using multidimensional arrays. I would really appreciate some help. In the program, the user is supposed to input the # of rows desired (up to 15... or else it won't fit … | |
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 … | |
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 … | |
Does anyone have a nice algorithm for capitolizing first characters of words? For example: The cow can't jump over the moon. -becomes- The Cow Can't Jump Over The Moon. -and 'neath the old olive tree -becomes- 'Neath The Old Olive Tree -and- help me (if you can) - becomes- Help … | |
In my Rave report i have created report with 5 diferent-looking pakes. How can I print only the pages that user choosed, example user wants only pages 3 and 5 to be printed. Default is to print all pages, and that is working, but I want to provide more choice … | |
How do I check if any window is maximized? I've got a program which sends keystrokes to that window but the problem is it will send keystrokes to any application that is running on my PC at the moment, so I wanted to prevent this by making it only send … | |
Hello everyone! I tried a lot to understand the spacing procedure in pascal triangle.. but it all went to vein!! Does anyone knows about this spacing??? Why are we using this loop: for(x=40-3*y;x>0;--x) printf(" "); need help ASAP!! | |
can any body help me by giving me a guideline on how to insert data from a populated datagrid into sql server table and how to make the values conform to the specified datatypes constructe in the sql server side...assuming the datagrid headings have already been created in the sql … | |
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 … | |
![]() | Hi Is there anyone who could help to figure out how link regexbuddy to Delphi 7SE? |
I got a problem with abit of code and am unable to fix it, i have marked the area that is having the problem with the error message that i get. procedure TMainForm.Show(s: string); var n, n2, n3: integer; arTemp: TMyArray; begin arTemp := TMyArray.Create(); n := InStr(1, s, ':'); … | |
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. | |
Hello, I have a program that registers some .dll files in system registry. I gave the program administrator access on a limited user using windwos manifest, but this only works under Win7. My problem is that i need the program to be able to do that under XP, VISTA and … | |
Hello all again, hopefully the last bit I'm stuck on. So at the moment, I'm wanting a piece of code that recognises any time between say 9am and 11am, 11am and 1pm, 1pm and 3pm, and so on (To create a pie chart) It doesn't have to recognise time, it … | |
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 … | |
For a college project I am trying to create a system. For a part of this system I have saved information from a combination of edit and combo boxes input by the user into a txt file and I now need to input this information into a stringgrid that is … | |
Hello, I need help creating an Algorithm for an IT school project, however it is due tomorrow and i'm running a little late, couldn't get help anywhere else. Can someone please help me out a bit. It's not as difficult. (pascal) 1. Develop an algorithm that will accept a company's … | |
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 … | |
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 … | |
Hey all again, I'm just wondering how you could get a graph to represent your data file (Such as a ValueListEditor) as I've had no success in managing to read from it or how it can be done. Wanting something like this; Video(5) DVD(8) CD(2) Video..|----- DVD....|-------- CD......|-- ...........|____________ Many … | |
I am using R-project to deal with my statistics, but due to the amount of resources needed, R is struggling while pascal would do it way faster. Is there a way to use pascal code in R-project? | |
Hello again, pretty simple question this time I would think. What I'm wanting is to be able to add 5 minutes onto a ttime variable. As what I'm trying to acheive is a queue system. (Time + QueueTime) and (QueueTime := QueueTime + ProductTime) However I get the basics, just … | |
I'm working with this rather popular DrawDisk procedure which pretty much anti-aliases a circle and draws it, filling it and the background in the process. At the moment the procedure call only lets you modify the background color of the WHOLE canvas and the fill color of the line. Have … | |
Hey, I'm having trouble transferring a single row of data from a StringGrid through a Client/Server module and then add the row onto another StringGrid at the other side. I keep getting array errors which would make sense however surely you can just take a row and add a row? … | |
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 … | |
So I have been working on Pascal's triangle and going about it a different way then most. I am attempting do to a series of if and elif statements to check for the values in rows and columns of those rows. However my novice skills in python are stopping me … | |
Hello, basically I am making a program which uses OOP to draw objects onto a canvas and they constantly move, I am making a feature which will save the position variables as the objects move each time and then once a file is outputted it can be read again and … | |
I'm having trouble getting GDI sample codes to work, I've seen the external packages and downloaded them but I couldn't get the same code to work and I believe it's because I don't know how to install the GDI packages properly, can anyone help me? | |
help me on how i can write a program for solving integrals using recursive subroutines for example: For given borders integrating A and B. calculate value a certain integral of the form: integral(1,x/((cos)^(n))x={((1)/(n-1))·((sinx)/(((cos)^(n-1))x))+n-2/(n-1)integral(((,x)/(((cos)^(n-2))x)) if n≥2 equal to lntan(pi/4+x/2)if n=1 and equal to x if n=0. | |
I'm sure this is very simple and I'm missing a trick or something, but all I want to do is write something in a memo, click a button to save to a textfile and then be able to change the memo, click the button again and add what has been … | |
Basically I have a object class like this: [code] Type TSomething = Class Private Blah : Integer; Public Procedure DoSomething; End; Type TSecond = Class(TSomething) Public Procedure DoSomethingNew; End; [/code] [code] Procedure TSecond.DoSomethingNew; Begin ShowMessage(IntToStr(Blah)); End; [/code] ...and the code to call the classes is: [code] Try Something := TSomething.Create; … | |
I am a mainly Java and VB programmer. However, I am writing a program that generates computer code in various languages. One of these is Pascal. What I am asking is simple. To detemine the size of an array in Java and VB I would enter: [code] anArray.length[/code] What is … | |
Hi, I'm looking for with some pascal code. I have to make a program which allows you to input a name and an amount four times. Then it is supposed to output the name, three percentages of the amount and the maximum of one of the percentage out of the … | |
Uses crt; Const M=5; Var A : array [1..M] of Integer; i,x : Integer; dapat : boolean; Function Cek(angka:Integer;batas:Integer):string; var Awal:integer; Begin For awal:=1 to batas do Begin If A[awal]=angka then Begin Cek:='Angka Sudah Ada !'; dec(i); End Else Cek:='Angka benar !'; End; End; Begin Clrscr; Writeln('Pencarian dengan fungsi Logika'); … | |
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 | |
Hi everyone, I'm now nearly finished with my project which tells us to write a PASCAL program for entering the information of the employees. However, I came across a BIG problem is that I've got no idea on how to edit records in the text files or delete unwanted data … | |
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; … | |
Making a logbook using editbox for entries that fill a listbox. I have two enter buttons. One would enter line in Red one in Black but I don't know how to change the font color in the listbox. My first pascal program and this is the last step for completion.:( … | |
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 … | |
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 … | |
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 … | |
I have a program I am trying to write. It is very basic but I'm not sure how to implement this specific function. Basically this is what I WANT my code to look like; Date Day Availability 1 Monday Free 2 Tuesday Free 3 Wednesday Free 4 Thursday Free 5 … |
The End.