1,899 Topics

Member Avatar for
Member Avatar for noob.pas

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 …

Member Avatar for tylcoatc
0
1K
Member Avatar for Sparkles

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 …

Member Avatar for tylcoatc
0
117
Member Avatar for snuppy

[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"

Member Avatar for LizR
0
81
Member Avatar for yssirhc

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 …

Member Avatar for LizR
0
121
Member Avatar for superseven

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.

Member Avatar for LizR
0
53
Member Avatar for StatManLV

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?

Member Avatar for LizR
0
101
Member Avatar for bulkhin

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

Member Avatar for LizR
0
750
Member Avatar for JosipMiller

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 …

Member Avatar for JosipMiller
0
244
Member Avatar for gh0sts416

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 :(

Member Avatar for LizR
0
126
Member Avatar for the_titan

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 …

Member Avatar for LizR
0
98
Member Avatar for kuen151

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?

Member Avatar for LizR
0
118
Member Avatar for Richard1992

[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'); …

Member Avatar for ddanbe
0
279
Member Avatar for bob on whidbey

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.

Member Avatar for LizR
0
299
Member Avatar for bulkhin

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 …

Member Avatar for Jonase
0
146
Member Avatar for jsosnowski

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 …

Member Avatar for mcrosman
0
922
Member Avatar for morecrab

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?

Member Avatar for LizR
0
115
Member Avatar for Olsi009

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 …

Member Avatar for LizR
0
317
Member Avatar for janinesamson

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 …

Member Avatar for LizR
0
94
Member Avatar for dmkp

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 …

Member Avatar for dmkp
0
168
Member Avatar for smorton123

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 …

Member Avatar for jsosnowski
0
231
Member Avatar for TomRandall

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 …

Member Avatar for LizR
0
172
Member Avatar for dodol

HI All, Anyone know about the component to capture data from pdf and then insert to database????? regards, dodol

Member Avatar for LizR
0
80
Member Avatar for marsheng

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 …

Member Avatar for LizR
0
124
Member Avatar for ebi1

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 …

0
55
Member Avatar for marsheng

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

Member Avatar for LizR
0
257
Member Avatar for Aerialknight

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.

Member Avatar for LizR
0
127
Member Avatar for auzziez

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 …

Member Avatar for dlhale
0
590
Member Avatar for AKJo

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 …

Member Avatar for Narue
0
149
Member Avatar for lacompsr

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 …

Member Avatar for delphiman
0
163
Member Avatar for delhiris

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 …

Member Avatar for LizR
0
124
Member Avatar for solaris249

Is there any database engine written with pascal? i need a database engine written with pascal. thanks.

Member Avatar for LizR
0
78
Member Avatar for Smu

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 …

Member Avatar for terataki
0
144
Member Avatar for mawst

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 …

Member Avatar for mawst
0
140
Member Avatar for Egypt Pharaoh
Member Avatar for LizR
0
127
Member Avatar for xVent

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 …

Member Avatar for LizR
0
94
Member Avatar for darkyere

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 …

Member Avatar for jsosnowski
0
210
Member Avatar for mawst

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 …

Member Avatar for mawst
0
137
Member Avatar for darkyere

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 …

Member Avatar for LizR
0
166
Member Avatar for darkyere

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 …

Member Avatar for LizR
0
248
Member Avatar for aldl88

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 …

Member Avatar for LizR
0
99
Member Avatar for darkyere

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 …

Member Avatar for LizR
0
192
Member Avatar for darkyere

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... …

Member Avatar for LizR
0
225
Member Avatar for |brando

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)); …

Member Avatar for LizR
0
190
Member Avatar for 2Two

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?

Member Avatar for LizR
0
63
Member Avatar for 2Two

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 …

Member Avatar for LizR
0
125
Member Avatar for cherryteresa

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 …

Member Avatar for cherryteresa
0
293
Member Avatar for Thew

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?

Member Avatar for LizR
0
36
Member Avatar for darkyere

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 …

Member Avatar for LizR
0
292
Member Avatar for smorton123

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 …

Member Avatar for jsosnowski
0
441
Member Avatar for khoshBlagh

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

Member Avatar for LizR
0
116

The End.