2,103 Topics

Member Avatar for
Member Avatar for Olsi009

Hi to all, I have this homework with Pascal. We have a text file that has some text in it (thetext.txt). we want to put all the words of the text and the frequency in another file without repeating the word(file name finalfile.txt). Example: thetext.txt has this text in it: …

Member Avatar for Micheus
0
182
Member Avatar for MoZo1

Well... I could copy the data, and use that, but that would be very slow, and I would have to copy often and a lot. I have a table where records depends on another one. Still, it will be the backup if I can't solve this. So every time I …

Member Avatar for MoZo1
0
476
Member Avatar for toxygen

I would like to ask whether pointer dereference by typecast is same in both cases: [CODE=delphi]TComponent(my_tfplist[1]).mymethod[/CODE] and [CODE=delphi] TComponent(my_tfplist[1]^).mymethod[/CODE] both things are doing the same thing (at least it behaves so), but compiler generates different code, so i'm curious what is the difference between those two. to clarify: my_tfplist is …

Member Avatar for toxygen
0
94
Member Avatar for dancie reeves

Hello to the community, My name is dancie. I live in the Netherlands. I am 57 years old. I speak Dutch,English,Spanish, and a few other languages to a lesser degree. I have studied mathematics and physics for five years in the university. I begun with computers a long time ago. …

Member Avatar for Serunson
0
245
Member Avatar for BinaryAssassin

Hey all, I'm currently writing a program that will do various things with dates. The problem that I currently have is getting pascal to recognise dates in various formats (eg. 24/09/93 or 09-03-04 or 17 01 99, etc) when input by a user. This data needs to be read by …

Member Avatar for Duoas
0
116
Member Avatar for Maddy1987

[COLOR=#228b22] Coefficients in the expansion of (x+y)^n form a pattern which is useful for small values of n. It is known as Pascal's triangle. n Pascal's triangle 1 1 1 2 1 2 1 3 1 3 3 1 4 1 4 6 4 1 5 1 5 10 10 …

Member Avatar for DevonMcC++
0
445
Member Avatar for jamesbond110

Man, I'm so new. I'm trying to script something for a game. so here's what I got: [code] program twars; const Color = $FFFFFFFF; FISTS = 0; DEAGLES = 1; MP5 = 2; AK74 = 3; STEYR = 4; SPAS = 5; RUGER = 6; M79 = 7; BARRETT = …

Member Avatar for jamesbond110
0
288
Member Avatar for Gardibald

Hello! I have recently started a new program in delphi 7 and i stuck. The problem is: I want to add an .avi video to run in my program when certain condition is fullfilled, but i dont know even how to start this. Please if you have some knowlege about …

Member Avatar for Micheus
0
111
Member Avatar for detoxx

Hi, im new to this forum, and searched for everything to do with 2D array, but found nothing to no real avail. My problem is that i have to write a 2D array in pascal that stores 15 student ID's and 5 marks for each student. I've managed to write …

Member Avatar for Clive29
0
153
Member Avatar for andrewblack

Hi All. I create a accounting Program, and have so many module like sales, purchasing etc. I want to break my program to some program that linked each other. How i can make this happens? For exampled i build main application that have user management, and friends of mine build …

Member Avatar for andrewblack
0
114
Member Avatar for manutd4life230

all work perfectly just the substraction here's the code: [code=pascal]Program calculation; uses wincrt; Procedure menu; Begin Writeln('Options:'); Writeln('1. Addition'); Writeln('2. Subtraction'); Writeln('3. Mutiplication'); Writeln('4. Division'); Writeln('5. Exit'); End; Function GetUserInput(msg:string):integer; Var UserInput:integer; Begin Write(msg); Read(UserInput); GetUserInput:=Userinput; End; Procedure Add; var add:integer; Begin clrscr; add:=GetUserInput('Enter another number:')+GetUserInput('Enter a number:'); writeln('Result=',add); End; …

Member Avatar for manutd4life
0
120
Member Avatar for sony112

Can some1 show me how to make a 7 segment display pelase on delphi petes petrol pump

Member Avatar for Duoas
0
106
Member Avatar for johnkurtz

Hi all. Could anybody tell me how can I load to the memory a weighted graph from a file? Thanks.

Member Avatar for Duoas
0
67
Member Avatar for Daniel1505

Hi, I am trying to create a program that stores employee records in an array, and also has the option to delete records and view various details. I am trying to create a menu so that when you choose an option the request will be carried out, the problem I …

Member Avatar for Duoas
0
131
Member Avatar for chts12345

Hi All I was discussing halting halting problem with one of my friend yesterday. He asked me a good question. Here is the question: "Let P be the class of all Pascal programs that don't use go to ,while and repeat statements, nor recursive procedure calls.Is Halting Problem Valid for …

Member Avatar for Duoas
0
171
Member Avatar for isi4h

I'm using delphi 7, if anyone could let me know how to compile this code i would be grateful. thanks. [CODE]unit UIRT; interface uses SysUtils, Classes, Windows, SyncObjs, Dialogs; // USB-UIRT DLL API Constants... const CRLF: string = '\r\n'; INVALID_HANDLE_VALUE: integer = -1; ERROR_IO_PENDING: integer = 997; UUIRTDRV_ERR_NO_DEVICE: integer = …

Member Avatar for Duoas
0
149
Member Avatar for mahest

Hi, I'm new to the Delphi plugin. I'm writing a new plugin for existing Software. But I successfully call the plug in and worked the all functionality. But when I tried to close the plugin form I got some 'Abstract Error'. Any one help me tell me how to resolve …

Member Avatar for Duoas
0
152
Member Avatar for simps0n

Hello, guys! I have to generate 10 different numbers. What I do is to store the generated numbers in array. Before that I check the array for duplicates. It compiles, but I get some duplicates. Thanks in advance for any help.[CODE=Pascal]program rand; {$APPTYPE CONSOLE} uses SysUtils; var j, i, a, …

Member Avatar for DevonMcC++
0
1K
Member Avatar for rbarzallo

Type PRecKey = ^RecKey; RecKey = Packed Record Key_Command : Array[0..2] of Char; Key_Pan_Type : Char; Key_Format : Char; Key_E_Pin : Array[0..15] of Char; Key_Terminal : Array[0..4] of Char; Key_Key_Type : Char; Key_OffSet : Array[0..3] of Char; Key_Pan : Array[0..19] of Char; Key_Pad_Char : Char; Key_Pin_length : Array[0..1] of Char; …

-1
59
Member Avatar for gerhardjl

Hi, I wish to develope a ping-application, bit more enchanced than the dos-window ping util. Can someone help here with either examples or comp? Typical I wish to ping a network point continuously to evaluate response time etc. Thus I wish to set the normal ping params and the ping …

Member Avatar for pozlast
0
96
Member Avatar for Kafana

Hello, I am new to this community and I hope it is a good one. I have been thinking of starting some serious programming and that is the reason for me joining this community. I would like to learn as many programming languages as I can since I like programming …

Member Avatar for Salem
0
105
Member Avatar for JwAlstrom

. Wednesday - '08-04-16 . I am a retired computer "professional" - . First used a computer in 1957 - Started with a specialized simulation language, soon found myself writing 0's and 1's on a drum based machine with only teletype and paper tape I.O. . Then Fortran on a …

Member Avatar for zandiago
0
153
Member Avatar for bbradley
Member Avatar for lespitts

I am new to Delphi - in spite of looking at numerous text books, I cannot find a simple way of printing a screen shoot. Is there one?

Member Avatar for Micheus
0
100
Member Avatar for ecostas

Hi. If I define a lookup field, there will be a corresponding pick-list in the dbgrid. Is there a way to open this pick-list with the keyboard, instead of clicking on it? Otherwise I may have to use a TDBlookupcombobox in every column with a pick-list, because the user may …

Member Avatar for Micheus
0
500
Member Avatar for shreka

Hello, I have been asked to create a pascal program but I am finding it really difficult because I haven't dealt with text files or binary searches before. The program is supposed to read a Student ID and then the program should display the Student's details. All of the data …

Member Avatar for another guest
0
522
Member Avatar for Berniceazzopard

Hey i am doing a database of a bueaty salon with pascal. I need to tell the user to enter the date and validate it date but i on managed to get this far can u please help me. I need to validate that february contains 29 days if in …

Member Avatar for jsosnowski
0
111
Member Avatar for RyanLeaf

I, a 13 year old 'geek', am interested in programming. My initial question is whether or not should I start with C++ or Assembly? I know I probably will end up using Assembly (as I want to be able to control everything that happens with it, and I don't want …

Member Avatar for Ancient Dragon
-1
500
Member Avatar for ecostas

Hi. If I define a lookup field, there will be a corresponding pick-list in the dbgrid. Is there a way to open this pick-list with the keyboard, instead of clicking on it? Otherwise I may have to use a TDBlookupcombobox in every column with a pick-list, because the user may …

0
72
Member Avatar for bbradley

I have a problem with my edit boxs. I am adding value 0.1 to an edit box on a button click. How can I make it so that there is always 4 values i.e 00.1 if the value was 0.1. or 01.0 if the value is one. At the moment …

Member Avatar for jsosnowski
0
91
Member Avatar for Peppercat101

Im writing monopoly, Im still a beginner so please help.... I wrote this for loop but for some reason it starts at 28 and not at 1.... For r := 1 to 28 do If STekoop[1,r] = plek then If messagedlg(STeKoop[r,2] + ' FOR SALE.' + #13 + 'Price: ' …

Member Avatar for Peppercat101
0
122
Member Avatar for michael.pevzner

Hello, guys. I'm a nit in the web programming :) , but I have 15 years in C, C++, Pascal, VB and so on, so programming is not a new field for me. I need to write a simple bot for the web game. The purpose of the bot is …

Member Avatar for pty
0
107
Member Avatar for ralf_altman

How can I detect a new removable drive in the DriveComboBox plugged in after the program has been already running? Currently I have to close then re-open the program to get the new drive updated in the DriveComboBox. Please help!

Member Avatar for puc
0
71
Member Avatar for bbradley

I'll make it blunt of what I can't seem to get my head round. I have two edit boxs, values in both, and I want the value in editbox1 to be added to the value in editbox2. And then the value appear in editbox2. If you can think of a …

Member Avatar for jsosnowski
0
201
Member Avatar for Byrdc

I have written programs in Python that created files, arrays, and student grade reports. These few programs helped me to see some of the power behind Python to the point where I would like to become an expert in it. I have also programmed in COBOL, PASCAL, and "C" languages, …

Member Avatar for november_pooh
0
177
Member Avatar for dad45

I have a Tmemo component that can display 10 rows with the current font. There are currently 5 rows assigned, i,e Memo.lines.count -1 = 4. Is there a way to detect when a row is clicked that is greater than the last assigned/displayed row. Example: If I click it the …

Member Avatar for jsosnowski
0
124
Member Avatar for li1drag0n

I have this assignement and i have no idea how to code it...i was hoping that one of you guys can help me out here...thanks in advance!!! Description: This is a 2 part lab assignment (labs number 6 and 7). High-Level languages, like C++, take advantage of pre-written and compiled …

0
66
Member Avatar for zoe256

I've written a program in Delphi 7 on my Windows XP computer that obtains values from a serial port (using ComPort) and puts them into a MySQL database. (I've got all the connectors and service set up) but when I try to run the .exe on a Windows 2000 computer …

0
74
Member Avatar for yotamlem

Can any one help me, I need to find\build a tool that converts TDateTime (number) in to string that is the date it represents. I want to put this in the Delphi 5 environment as a button or addon or somthing.... Thanks.

Member Avatar for jsosnowski
0
89
Member Avatar for superseven

Hi ALL Can any one help me here, I've got a files that contains graphs and all other things that I need to run in delphi but my problem is that there file is in dgn extenstion so I don't know whether does delphi this extension. If yes, What can …

Member Avatar for RoryGren
0
70
Member Avatar for jsosnowski

I intend to write a new Actionlist component to meet special requirements of a program. The list will be limited to 20 items that must also include several additional properties in each ActionListItem. My question is were can I find samples (or can someone explain) how to create an Actionlist …

0
78
Member Avatar for ralf_altman

I convert my program from Delphi6 to Delphi2007 and only get it work on Window Vista if: 1. UAC (User Account Control) is OFF. 2. or if UAC is ON. then I have to select the program short cut on desktop, right click and choose "Run as administrator" Is there …

Member Avatar for superseven
0
105
Member Avatar for superseven

Hi All I've searched without any success to find how to create RTF files using delphi 7. What I want to do is to create an RTF files with Grids and Graphs but I really don't know where to start. Can any one help me with this. Thank you!!!

0
67
Member Avatar for murlan

Hi everyone, this is my first post here. I apologize if it's not the right forum to do so and please move it where appropriate. I am using a very standard (tsk-750) barcode scanner for a database I have designed for a friends' video rental store. The stand for the …

0
56
Member Avatar for dnk

please help me.. there anyone know how to reverse strings??? i really don't have idea for this.. please helps...

Member Avatar for Jx_Man
0
218
Member Avatar for DarknessX

I'm new here, as you can most likely tell by my low post count... but my question is simple. What procedure/commands/whatever would I need to make the computer restart or shutdown? I have google'd for a looooong time to find this, but found absolutely nothing. Does anyone have some help …

Member Avatar for bobo_joker
0
294
Member Avatar for Thew

Hi, I don't know if you know something about TALWinInteFTPClient, but maybe it doesn't depend on it. I am using this class to access to the ftp server. I connect, then I check the connection and everything is good. So I need to get the tree of files and directories …

Member Avatar for Thew
0
161
Member Avatar for Thew

Hello, I want to put some files together, but I have problem, when I'm trying to write data into opened file from another file. Structure of compiled file: - Head: total count of files in file - Sizes: names and the sizes of the files - File Streams so I …

Member Avatar for Thew
0
2K
Member Avatar for ecostas

Hi. I used [B]Infopower[/B] for a long time but I can't afford to upgrade it to Delphi 2007. With Infopower I got TwwDBLookupCombo that allowed me to display a value, for example, a text ID, while updating the record with an internal ID. To place the component into the grid, …

Member Avatar for ecostas
0
415
Member Avatar for EnderX

I am working on a program designed to map a networked drive to a Linux Samba share. I have been requested to give the end users a way to select what drive they want to map. I know that some drives are off limits for use; (A:, C:, and the …

Member Avatar for Duoas
0
1K

The End.