1,899 Topics
![]() | |
okay, i've been looking for a nice algorithm for this one for a long time, all i find are cpp, java and c# code. i've been trying to reverse the order of each word in its place, but i don't seem to be able to do so. i tried with … | |
I know this is a bit messed up (the code), but, I'm baffled why it isn't working. I know I'm not great at delphi, and I'd really like some help. [code] var Form1: TForm1; SteamString : String; CommunityString : String; ZeroOrOne : String; SteamId : String; CommunityStringMath : Longint; Calc … | |
[code] procedure TForm2.Button1Click(Sender: TObject); var s:string; i,count:integer; begin s:=edit1.Text; count:=0; for i:=1 to length(S) do if Pos('111111', Edit1.Text) <> 0 then label2.caption:='Yes: 111111!' else label2.caption:='No: 111111!'; end; [/code] someone will be upshot use "while" OR "repeat..until" | |
well the title pretty much says it all. I'm trying to grab an html hidden form input value for use in a delphi function. I don't know delphi very well at all, so I was trying to follow the format of the other code in the program that did this … | |
Hi all, I've got a stored procered in SQL 2005 that I need to execute in delphi 7, my problem is that i don't know how to execute it inside delphi. Plz help. | |
When you use truncate on a file, does truncate cause the file to be closed and then reopened? Or does it just leave the file open until you use the close command? | |
In my program I did the following: begin if not OpenDialog1.Execute then Exit; Memo1.Clear; AssignFile(MyFile,OpenDialog1.FileName); Reset(MyFile); while not EOLN(MyFile) do begin Read(MyFile,Text1); Memo1.Lines.Add(Text1); end; closeFile(MyFile); end; Can any one help me to write each word from the text file word by word in the memo. Regards, NOna | |
Hello, I connected my Delphi application with MS Access database and I am stuck a bit with a problem: how to execute UPDATE Query stored in MS Access database from Delphi ? Stored query in Access works properly. All other queries (mostly SELECT) stored in Access I have connected properly … | |
I Was Wondering If There Was A Way To Use An Enumeration As A Function Argument in Delphi And if So A Quick Little Example Would Be Great. I Cannot Seem To Figure it Out :( | |
Hi, I'm currently working on an RSS File Editor. I want to implement a syntax highlighting feature, but I don't know how to program it and didn't find anything useful on the internet. I'm using a RichEdit as the editor window. Can someone tell me how to do it or … | |
In Dev-c++, there is a command 'system("PAUSE")'. What's the equivalent in Dev-Pascal? Thank you. I added "readln;" in the row prior to "END", however, it still does not work, what to do!!?? All I want to do is to pause the cmd so I could see. Anyone could help me? | |
[Code=Pascal] Program Calculator; Uses Crt; Label 1; Var Selection, YesNo : String; Number, A, B, C, Number2, Total, InsideRoot, MinusB, TWOA, Answer1, Answer2 : Integer; Begin 1:Clrscr; Total :=0; Number :=0; Number2 :=0; Clrscr; Writeln('This is a more complicated calculator, please make a choice.'); Writeln('1. Addition'); Writeln('2. Subtraction'); Writeln('3. Multiplication'); … | |
I'd like to read/write xls files in Delphi. I think there's a way to do this using ADO. Can anyone provide an example or head me in the right direction. Thanks. | |
Dear All, I need help to do the interface delphi program as the following: 1. Allow the use to select a text file from a storage media. 2. Open the text file and read it line by line. 3. scan each line and extract each word 4. write each word … | |
I am trying to use a clientdataset without an associated Table. I am attempting to extract and edit data from a Cad program. The Cad program has an interface in which the user selects specific entities within the Cad file (lines, circles, text etc) and provides basic information and attributes … | |
Hi all, I wanna take file from a folder in ftp. I have connected. But when i want to change directory, it throws an exception : 505 Here's the code : nmFtp.Host := '10.11.12.3'; nmFtp.UserID := 'anonymous'; nmFtp.Password := 'kob3'; nmFtp.Connect; nmFtp.ChangeDir('/apolo/'); Any Adv? | |
Hi guys (again), Another exercise in Turbo Pascal about linked lists. [COLOR="Green"][B] Write a program that merges 2 linked lists and sorts elements from the lowest to the greatest. let suppose the list has this elements list = ^pointer; pointer = record value:integer; next:list; end;[/B][/COLOR] Please help, I have an … | |
Hey Everyone, I've only ever used a little bit of C# before for forms, and when changing windows themes the form looks exactly the same (buttons in the same position, etc). If the height of the titlebar changes (e.g. Win Classic -> Win XP Style) everything still stays in the … | |
Hi, I was in the understanding that applications created with Codegear/Delphi did not need any external libraries and that it compiled all the code into the exe? However with Delphi 2009 (using C++), my programmes were asking for rtl120.bpl, and various dlls before it could be used. I was wondering … | |
I'm almost finished my lottery program but having trouble with the validation. In the program the user enters their own numbers, these numbers are then stored in the array user. I want the program to validate these numbers to ensure each number is between 0 and 49. I have tried … | |
Hi, Is there an easy way to loop through an array of controls (user specified, not every control on the form) and disable them? At the moment I'm just disable/enabling them one by one e.g. ctrl1.enabled := false; ctrl2.enabled := false; .... ctrl22.enabled := false; etc. Is there a way … | |
HI All, Anyone know about the component to capture data from pdf and then insert to database????? regards, dodol | |
I am trying to get two files to work together. The customer file Cust with an Index on Accno and a job file Job with same index Accno. I have to admit I have not got my heard around datasources and tables as yet. I can only get the Cust … | |
hi all how can i read\load MSG files of Outlook into a specific folder of outlook? i don't need to view them. just to load them in. example: i have the file and path : "c:\ebi\TempZ\66.msg" and i want to put it in the folder "ebi\ZZZ" which is inside the … | |
Hi I need to move a shape (say for example a 5 mm circle) across a drawing, however as the shape moves it needs to redraw what was on the page before the shape got there. Thanks Wallace | |
I try to use 'extended' type for variables but I cannot, turbo pascal 7.0 report 'Error 116: Must be in 8087 mode to compile this' - so I don't know if sbd can help me solve this. | |
Hi, I need to automate an Excel sheet. The requirement is that I need to read data from various CSV Files, maipulate them and place the results into specific cells in an Excel Sheet. This excel sheet is already prepared with lots of text. Only specific columns are left blank … | |
Hello, My problem is the execution jumps over a lot of code. In my example it jumps from "if" to the last end;, without executing anycode inbetween. Why? I had no "if" before and the one line was executed before the procedure was ended. No error message is returned. All … | |
I want to make an appointment manager type thing in Delphi. In which I can add/edit/delete/make sure appointments dont clash. Its part of a larger program I am making in Delphi which is why I cant use anything else (apart from microsoft access via a DBGRID) and it is really … | |
i found this code in one example for TMSA32 component: procedure TfrmMain.ButtonOpenClick(Sender: TObject); begin VaComm1.Open; Comm1Dsr(VaComm1); end; procedure TfrmMain.Comm1Dsr(Sender: TObject); begin if VaComm1.DSR then StatusBar1.Panels[1].Text := 'DSR' else StatusBar1.Panels[1].Text := ''; end; Where Vacomm is component. In events for Vacomm1 in the first column is OnDsr,and next to him(aprpriate to … | |
Is there any database engine written with pascal? i need a database engine written with pascal. thanks. | |
Hey all. I'm new to this forum so I'm a little confused... but hey who! Anyway, straight to the point, I'm currently in 6th Form in school and we are learning Pascal in computing. For one small activity, I need to get the information from a file and sort it … | |
Hello all, Wondering if someone can direct me to a regex component and some code that I can use to strip out certain links from an HTML file (loading in a StringList). Example: <a href="../foo/23134.htm">bar</a> The result I'm after is: bar I only want to strip the link here, but … | |
Please I want to make Pascal's triangle in console application | |
Hello to all and merry christmas! i want to create a program so when i will write help in a readln(); i am gonna get a writeln(); which is gonna give me information about the program ... so i want to ask , is it possible to do it with … | |
here i go whit a new problem and yet the same... i think. on one of the forums i posted my last question in (im lost) the answer was that i could set i to be 0 from start in form load procedure. i did and it worked for a … | |
Hey guys I'm trying to see if someone can give me a nudge in the right direction here. All I need is two simple procedures: 1. Load XML Entries into TListBox 2. When ListBox is clicked, find string pointing to filename so I can display the item's associated file. My … | |
some code ive been using whit out any problems suddenly wont work.. Whats the really weird parts is when its a random number it got no problems lodaing the image. But when its i := i +1 item := listview1.Items; form2.image1.Picture.LoadFromFile(item.Caption); {here it chrashes] it crashes whit an error called … | |
Im trying to make a screensaver whit the option to support single and multiple images. this is the code for single images where im trying to make it fit large images to screen but no matter what of these conversion types ive used Round Rounds a floating point number to … | |
i didnt write this programe. can you help me Make a flowchart of an algorithm for calculation of the number and the sum of all elements smaller than Y on the minor diagonal of a 2D array with 20 rows and 20 columns. The value of Y is input by … | |
Ive made a Security Screensaver whit the options to show random pictures. and it show the start time, time went and then im trying to get it to show time left by minus lasttime whit currenttime It just doesnt work, if anyone could help me i would very much appreciate … | |
i have made a screensaver and what i want is to disable alt-tab, ctrl-esc, the windows button (the one between ctrl and alt i mean) ive tryed using many different versions of SystemParametersInfo( SPI_SCREENSAVERRUNNING, integer(true), @i, 0); SystemParametersInfo( SPI_SETFASTTASKSWITCH, 1, @i, 0); but its not working on xp and vista... … | |
Im trying to compile a DLL to use with [url=http://mirc.com/]mIRC[/url] (chat client with an integrated language) [code] library dll; uses SysUtils, Classes, Windows; function Test(mWnd, aWnd : HWND; data, parms : PChar; show, nopause : boolean) : integer; stdcall; var s : string; begin s := 'Hello World'; strcopy(data, PChar(s)); … | |
I'm trying to use OnNavigateComplete2 to get the URL of the current page TWebBrowser is on. Like if I click on a link to google.com the TEdit should change to google.com. It should do this for every new page. How would I accomplish this? | |
I'm trying to use IdFTP to connect to a web host. The .List line is giving me a huge problem that I've yet to solve. I keep getting Socket Error 10054. What I'm trying to do is make an auto update feature that alerts the user when a new version … | |
Hi there. I had to make a code to print out a Pascal Triangle. But I'm not getting it to display properly. For example, if the user types in 4, then it will print: 1 1 1 2 1 3 3 But it should print 1 1 1 1 2 … | |
![]() | Hello, I have one problem with XML in Delphi 7 Ent. When I want to use XML classes or units like XMLDoc I always get this error when compiling: Unit XMLIntf was compiled with a different version of XMLDOM.DOMString Any suggestions how to solve this? |
Hello, i have this code who ive been using whitout any problems. and then suddenly at says acces violation at address 004b84 in module "SecurityScreensaver.exe" when i trie to save a tstringlist to a file. this is how the code looks procedure TForm7.Button8Click(Sender: TObject); var s : tstringlist; begin savedialog1.Title … | |
I've been having more trouble with my lottery program. At the moment I've got the program to take in the users numbers (basically any numbers between 0-49 they want for the lottery draw). These are stored in the array 'user'. I also have the random numbers created by the program … | |
Hi every body I want to khow , how can I test a mdb file (Access file) for exsist table on it or not. I worke with Delphi 7. Thanks |
The End.