1,899 Topics

Member Avatar for
Member Avatar for scrypt3r

Hello all, i just started making a simple text-based console game for a computing class project. I have all my code working, but cannot find any code to- 1. Enable/Disable the console updating: When drawing the character, as well as multiple other objects on the console, sometimes you are able …

0
70
Member Avatar for Karlwakim

Hi everybody, Is pascal still used in big apps ? Is it true that skype is written in pascal ? What is it most used for ? Thanks.

Member Avatar for AceStryker
0
96
Member Avatar for hasbibulukumba

[CODE]Program arrprog; Uses crt; const max=20; add='Add Student File'; edit='Edit Student File'; del='Delete Student File'; vi='View All Student File'; Type Tdata = record id:string; nm:string; jr:string; sm:string; End; Var data:array [1..max] of Tdata; i,ls:integer; Pil:char; Procedure menu; Begin Writeln('Student Data'); Writeln('----------------'); Writeln; Writeln('1. ',add); Writeln('2. ',edit); Writeln('3. ',del); Writeln('4. ',vi); …

Member Avatar for AceStryker
0
345
Member Avatar for Fireprufe15

I'm programming a Yahtzee type game, but I have a problem checking for the different scoring types. So far I have everything but Full House, Small Straight and Large straight. It works like this: There are 5 variables (the dice) that are randomized to something between 1 and 6 every …

Member Avatar for Fireprufe15
0
127
Member Avatar for Fireprufe15

I am making a small game, just to sharpen up my Delphi knowledge before school starts again, and also to show of to my friends. So in this game I have five integers and I need to check if at least three of them equal each other. How would I …

Member Avatar for pritaeas
0
135
Member Avatar for Morten Brendefu

Dear enlightened ones. First of all. I am using Delphi 9. My code compiles and run with no error at all, still I am confused about the structure window in the Delphi window. It tells me that I have redeclared some identifiers. The thing is that I have a few …

Member Avatar for pritaeas
0
958
Member Avatar for ebc3142

Hi, For a homework assignement, I'v been asked to write a small school administration system. Currently, the user is able to enter a new student and their age which is then stored in a text file. This all works fine but now I need to load the contents of the …

Member Avatar for Morten Brendefu
0
629
Member Avatar for Jiggle

Hi guys, new to this region of the forums. I recently converted from Windows 7 to Ubuntu 11.04 - and an having a nightmare of a time getting free pascal to work. Lazarus is really not looking like a good option at the moment - I would be much happier …

Member Avatar for wpeckham
0
111
Member Avatar for Neub

Hi, I'm looking to write a program that sets and gets responses using SNMPv1. I will be using Borland Delphi v7 or 8. I have been using PERL prior to looking at Delphi but I have had problems setting two OID's and sending them in the same packet rather then …

Member Avatar for pritaeas
0
104
Member Avatar for d34dflowers
Member Avatar for triumphost

Hey all, I'm a c++ programmer and I'm REALLY new to pascal. I want to translate some of my programs into pascal just for the experience. The thing is, this Lazarus compiler is soooo confusing! All the windows are split apart.. How can I join them? Next is how can …

0
87
Member Avatar for Simon180

Am looking for a way to search a listview for selected captain items and then for it to remove all the items that were found. demo idea to loop full list to find search string that can be changed via edit and then to delete all items that are the …

Member Avatar for pritaeas
0
132
Member Avatar for redrobby02

Hi i need to read the last 14 Entries made into a typed file and then list the entries in a StringGrid so i can copy them to label captions later. I am a little unsure how to write the Code to loop for the last 14 Entries. the current …

Member Avatar for Morten Brendefu
0
194
Member Avatar for crapped

Well is there any built-in function to do this ?, or 3rd party library EXAMPLE code [CODE]source := Sock.Get('http://www.google.com/'); if source('Google Search Engine', a) > 0 then begin NeededPattern := GetPattern(source, '<font>','</font>'); result := neededPattern; // will display ABC of the <font>ABC</font> end;[/CODE] Then it will get the middle of …

Member Avatar for pritaeas
0
149
Member Avatar for AceStryker

I need to create a KeyStroke encryption, i studied about it and the theory is this: [LIST] [*]Check the keystate before keyloggers do it [*]Cancel the action of the key [*]get the active window [*]Simulate a virtual key in this window [/LIST] I can make the last three items, but …

Member Avatar for Morten Brendefu
0
214
Member Avatar for Morten Brendefu

Dear knowledgeable ones. Some time ago I made a few of my routines kind of universal, and I wonder if there is any way in Delphi (My version is Delphi9) that can be used to reuse this code in example below. As you see, the two procedures are almost identical, …

Member Avatar for pritaeas
0
283
Member Avatar for Morten Brendefu

There are many places on internet for great help regarding many things. Proper implementation of really fast routines for sorting data however is not common. I am not claiming these routines to be the fastest around, but their ease of implementation and use may make them welcome. As a thank …

0
244
Member Avatar for alvin_aldrich

Hi I need help on converting the sample c++ code. Can someone please help. Any help would be greatly appreciated. :D struct sample { int type; long arg1, arg2; }; struct sample sampletable[2][3] = {{{ 1, 0, 0 }, { 2, 0, 0 }, { 1, 0, 0 }}, {{ …

Member Avatar for Sten Ove Larvin
0
433
Member Avatar for Morten Brendefu

In my Delphi9, I have the ability to "Shrink" complete procedures and functions so that only the first line is visible. There is a small + or - at the beginning of first line of a routine, and when pressed, the code is 'minimized' or 'maximized'. I find this to …

Member Avatar for pritaeas
0
263
Member Avatar for OASys1

Greetings, I need to have a way to veiw/print reports designed in MS Access in my Delphi application. I have a MS Access 2007 db for the backend of my Delphi2010 application. I have reports I had defined and saved in my Access db. I would like to place a …

Member Avatar for OASys1
0
443
Member Avatar for EnderX

Does anyone know of a good site or doc that describes the ways to use a TStringGrid? I'm trying to figure out how to right-justify some of the items that are going to be placed into a TStringGrid, and none of the docs I've found so far seem to have …

Member Avatar for Micheus
0
152
Member Avatar for mitster

Hey guys, im trying to use an IF statement in the SETUP portion of the script for my inno setup installer, i want it to test for the boolean condition of a radio button defined in a 'procedure' in the CODE section, is this possible, how would i do it? …

Member Avatar for Morten Brendefu
0
106
Member Avatar for Morten Brendefu

I am trying to write a few very dynamic procedures and functions and wonder about transferring parameters to a procedure as an Array. This is actually easy enough done.... just that I would like to pass something like [CODE] VAR a,b,c : INTEGER; Name, Text1,Text2 : STRING; todaysDate : TDate; …

Member Avatar for Morten Brendefu
0
1K
Member Avatar for redrobby02

Hi i am very new to delphi and have only been working with it for a few months, i need to calculate the difference between 2 TDateTime Variables regardless of the number of days passed. Currently im using this: [CODE] var StartTime, EndTime, TimeDiff: TDateTime; begin StartTime := (Now); EndTime …

Member Avatar for Morten Brendefu
0
6K
Member Avatar for Morten Brendefu

Dear enlighted ones. I happen to try to finsh a kind of a function library that my Main program can utilize. As of now, Everything work great... but. I would like to implement some kind of error handling. The way I do this also work, but the error is generated …

Member Avatar for Morten Brendefu
0
582
Member Avatar for ajst

Hi Guys and girls, I'm using a TMonthCalander to display Dates, I'm using the BoldDays method to bold the important days. I have everything working fine when the user changes the month via the TMonthCalander controls. But I can not bold the days when they click a button. I've tried …

0
123
Member Avatar for FlamingClaw
Member Avatar for Morten Brendefu
0
254
Member Avatar for seto.girl

hi I want my delphi DB that I made to export to excel file how it is possible?and the most important thing is delphi reports that I made I want them to export as excel files ,plz help me !!:(

Member Avatar for Morten Brendefu
0
3K
Member Avatar for kundalish

given a sequence of n elements.increase it by putting after every element the same.for example when you have 1,2,3 the you must increase it by getting 1,1,2,2,3,3.how are i do that using a single array?

Member Avatar for Morten Brendefu
0
156
Member Avatar for Pirsig

[I] [/I]Hello. I am trying to write a very simple Delphi4 32-bit console app which toggles the RTS pin of the COM1 RS232 serial port. What is the simplest way to do this? I tried writing asm code (see below) but not surprisingly I got a run-time exception: [QUOTE]Exception EPrivilege …

Member Avatar for Pirsig
0
257

The End.