1,899 Topics

Member Avatar for
Member Avatar for tcoma4x4

Hello All, I have a question and need some help with a c# console application project that asks the user to enter the number of rows to calculate and display Pascal’s Triangle. What I really need help with is how to properly format the output in the shape of a …

Member Avatar for tcoma4x4
0
251
Member Avatar for tcoma4x4

Hi All, I have this old c program that I did a while back on pascals triangle and i'm trying to convert it over to c#.net. Can anyone help me do this? I do not know much or anything on on c# Here is the code: [code=c] //Lyncob directory #include …

0
65
Member Avatar for SeaZoneDev

I am creating a binary file, containing a record type i have defined, using the BLockWrite command. I am then trying to read the data back again and i get 3 out of the 4 values in the record back and i can't work out why. Code snippets below Bits …

Member Avatar for LizR
0
118
Member Avatar for AKJo

I'm embarrassed. I suddenly realized that not in any of my programs scrollbars show when they should, despite visible is set to True. I am not able to fix it! Can someone please tell the secret?

Member Avatar for AKJo
0
178
Member Avatar for Zolookas

Hi, I have a question. Is it possible to copy all contents from record to typed pointer which has same items? Example here: [CODE=pascal]program linked_list_queue; type queue = ^myrecord; myrecord = record data: integer; otherdata: string; datadatadata: char; next: queue; end; const head = nil; tail = nil; procedure add(argument: …

Member Avatar for pritaeas
0
153
Member Avatar for codeforfun

Ok, this Program was supposed to make the [U]asterisk go down a line every 1 second[/U] and to be able to move right and left, It moves right and left but [U]it doesn't go down.[/U] For Those wondering, yeah im trying to make an arkanoid or something like that... this …

Member Avatar for LizR
0
103
Member Avatar for Lone | Wolf

hello, I'm new to the language and so far as I can tell this should work but it isnt. Sorry its probably just a newb mistake but i've spent hours on this silly error (and used search). [code]var call_start, call_length : integer; discount, cost: real; answer: char; const normal_price = …

Member Avatar for LizR
0
126
Member Avatar for lytre
Member Avatar for vanias

Can anyone help me to do this !!! I want to download a file (for exaclty photo file) from a web page how i can do this through delphi?????

Member Avatar for LizR
0
175
Member Avatar for dodol

Hai all, In delphi, how to make the program only one exe only on executing. example : I have a project tools after execute it appears tools.exe how to make the people can not execute tools.exe in the second time?? Only one exe can run.

Member Avatar for LizR
0
183
Member Avatar for intel1111

I am currently learning Pascal at school an I'm thought i was getting pretty efficient until i was set work on the repeat until loop. I was working on a program that squares then cubes a number until a rouge value of -9999.99 but it won't! [code=pascal] (* Author: Tony …

Member Avatar for MoZo1
0
109
Member Avatar for ComeAsYouAre

Hello all! I need to write simple game with Forms, Buttons, but by using only!!! .dpr file. I tried to transfer the information from .pas, .dfm files and even has achieved success to compile it, but at start there is an exception EResNotFound ('Resourse TForm1 not found') I shall be …

Member Avatar for MoZo1
0
462
Member Avatar for KDizzle

i need help programming pascal's triangle in C. i looked at the old threads, and none of them really helped. its a simple program, so no getch() or anything special. i started to create an array and give each element values. when i tried to run it, my output it …

Member Avatar for josh2
0
148
Member Avatar for taineechan

Hi All I want to delete records from a table. I'm using the following query: [code] adqdelete.active := false; adqdelete.sql.add('delete from stalls'); adqdelete.sql.add('where stall_name ='); adqdelete.sql.add(edtDeleteStalls.Text); adqdelete.active:=True; [/code] This gives a syntax error. does anyone know what I'm doing wrong? Thanks for your time Tai

Member Avatar for ennis
0
370
Member Avatar for sonya795

Hello everyone, I need some assistance in finding an error in my Delphi code. (I am new to the Delphi programming). I am using a Delphi application to build an excel spreadsheet. When a part_number is entered for the first time(assuming it exists in db) application always runs , the …

Member Avatar for sonya795
0
211
Member Avatar for Bob Kolb

I need help getting going with Pascal on a Mac. (I have considerable amateur experience on Delphi on a PC.) Two possibilities: 1. I can hire someone with the knowledge to consult and get me going--Install compiler, setup IDE, relate to XCODE (whatever that is) and so on. I live …

0
48
Member Avatar for Bob Kolb

I am coding a unit in Delphi 2007 and everything has been working fine. Suddenly, pressing the "return" key merely moves the cursor to the next line instead of throwing a new line I switch to another program (word processor) and that program works fine. I have rebooted, but that …

Member Avatar for Bob Kolb
0
94
Member Avatar for Ravenn

hey there, i'm new at delphi, at my first prog actually. Been doing c/c++ for a while. The prog is supposed to be simple game, and i need a level counter. I've strayed a bit from the tutorial i'm using and now when i run it the number in the …

Member Avatar for Ravenn
0
127
Member Avatar for pfemia

Hello, I need to transform mathematical expressions from MathML (as a part of an XML file) to plain text format (in the Pascal or C fashion) and the reverse (from Pascal to MathML) form my application in Delphi. Does anybody know any component or routine to do this? Thanks in …

Member Avatar for pfemia
0
82
Member Avatar for pfemia

Hello, I need to transform mathematical expressions from MathML (as a part of an XML file) to plain text format (in the Pascal or C fashion) and the reverse (from Pascal to MathML) form my application in Delphi. Does anybody know any component or routine to do this? Thanks in …

0
31
Member Avatar for lytre

ok, when i try and compile my unfinished program at the bottom: it gives me these two errors c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:6: warning: missing string capacity - assuming 255 c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:7: parse error before `In' and i'm new to programming so i dont know …

Member Avatar for suki_boy
0
212
Member Avatar for espSquall

The declaration of the type is: [code]type TMediaLibrary = record Title:string[30]; TrackNo:integer; Artist:string[30]; Album:string[30]; Year:string[4]; Genre:string[30]; Comment:String[30]; Directory:string; end; var SongInfo: TMediaLibrary;[/code] and the file implementation of it is here: [code]procedure TForm1.Button1Click(Sender: TObject); var SongFile:string; MediaLibrary: file of TMediaLibrary; <<<Error is here begin . . . . AssignFile(MediaLibrary, 'C:\Program Files\toMedia …

Member Avatar for espSquall
0
155
Member Avatar for littleatomic

Hi, I am atempting to make a time scroll bar (like the bar one would find at the bottom of video where you can jump to a specific time). I am currently using a TTrackBar, with a TTimer that keeps updating the possition. The problem I am stuck with now, …

Member Avatar for espSquall
0
84
Member Avatar for boed

I want to display first data from table on mysql in scrollbox, before print it. Iam using delphi 7 and rave report 5. how ??

0
53
Member Avatar for nordiquefb

I'm currently working on a project to display Pascal's Triangle and the binomials up to a certain row that the user inputs. I have the triangle done, but I'm having a bit of trouble getting the binomials to work. This is what the output should look like for the binomials: …

Member Avatar for nordiquefb
0
146
Member Avatar for josejp1

Hello friends, I inform you that on the web [url]http://delphimagic.blogspot.com[/url] have a selection of good tricks in Delphi. I hope you like. Javier

Member Avatar for Duoas
0
84
Member Avatar for HolyEnd

I'm making a program that involves the copy and pasting of a piece of text into a TEditBox and submitting the text into 4 different columns in a TListBox. This program is actually for a game called FlashFlashRevolution (great free, online, ddr-like game if anyone wants to try it out). …

Member Avatar for ExplainThat
0
155
Member Avatar for TDN169

Does anyone know how to extract the nth character from a string- nice simple code like: charfromstring(mystring, 33) to extract the 33rd character of mystring obviously this is wrong- what is the correct way to do it. Even better, how could I split a string at the nth character eg. …

Member Avatar for TDN169
0
1K
Member Avatar for webzz

I'm using Delphi 2007 and I need to pick and display a character from a unicode font in the range U+1500 to U+15FF I tried: label1.caption := widechar($1513); but it can't be that simple. I have googled unicode, delphi, chr, widechar etc and researched for days and I still can't …

Member Avatar for ExplainThat
0
667
Member Avatar for mus1010

please somebody can help me out to get Pascal's Triangle by using loops ( probably with nested loop ) !! Pleeeeeeeeeeeease

Member Avatar for LizR
0
336
Member Avatar for Thew

Hello, I need to know how can I get the process name (or path to the executable) that is currently using some file. Like I want to know which application uses Dll I want to replace, so I can kill the process...

Member Avatar for Duoas
0
91
Member Avatar for jagdishc

Can anyone tell how to print a pascal's triangle... i've wriiten a code but it is not printing the triangle as the way iwanted it to.. here is my code: [code=cplusplus] #include<stdio.h> #include<conio.h> void main() { int n,a[50][50],x,y; clrscr(); printf("Enter the number rows:\t"); scanf("%d",&n); for(x=0;x<n;x++) { for(y=0;y<=x;y++) { if((y==x)||(y==0)) { …

Member Avatar for jagdishc
0
81
Member Avatar for sobam15

I have to create and run a program that can take any column and row value and print the corresponding number. I think I understand how to do this manually: 1. Initialize row and column ($i and $j). 2. Make sure row/column combination exists, row must be larger or equal …

0
55
Member Avatar for sobam15

This triangle shape full of numbers is the reference I have to use for the first part of a homework problem, but I haven't the slightest clue as to why the rows and columns are indexed starting at zero and what that means in terms of all the other rows. …

Member Avatar for sobam15
0
244
Member Avatar for AKJo

I have just installed Delphi 2007 in my Vista (jumping from 6 in wonderful XP). Everything is new and unknown. Help seems impossible to find, and I need to get a DLL showing its object in my Tool Palette so I can compile old programs. Could someone please guide me …

Member Avatar for AKJo
0
955
Member Avatar for eenceo

I created a program that uses an XML file to store information. Everything works fine on the computer I created it on. When I transferred it to another computer it gave a windows error reporting box and did nothing else. I modified the program so it showed message boxes while …

0
69
Member Avatar for mzdiva041986

Help me improve this algorithm please, as of now it is calulating the rows of Pascal's Triangle but I need it to calculate the colums and stop at (3,1). for n:= 0 to k do for m:= 0 to n do if m=0 or m=n then A[n,m]:= 1 else A[n,m]:=A[n-1,m-1] …

Member Avatar for Duoas
0
83
Member Avatar for JimBeam

Couldn't find a search button so I'll ask: I'm running Freebsd v7.0 with the ratpoison window manager, and have installed free pascal from ports. I've been trying for hours to get either Lazarus or fpc-ide installed with no luck. Lazarus - gives message like menubar>>environment.>environment options>> etc etc etc. If …

Member Avatar for JimBeam
0
177
Member Avatar for Thew

Hi, I need to know, if I can draw multi-colored subitems in ListView. Since I've been trying to do this, I made some steps, but the result is subitem still with one color. For example, I need to draw this: [COLOR="Red"]H[/COLOR][COLOR="Green"]e[/COLOR][COLOR="Red"]ll[/COLOR]o, but I get this: [COLOR="Red"]Hello[/COLOR], always...

Member Avatar for pritaeas
0
22
Member Avatar for Evil_Tim

I have a project that i need to do but i am having trouble with the code for a delphi application to auto find all the required files and database files that are required for the application to be able to function properly - meaning that if i move the …

Member Avatar for farhan386
0
91
Member Avatar for Peppercat101

I have a little problem... I use a MS database in my program.... I want to enable the user to backup the database that I use to a specific location that they choose.... Any suggestions? Because I'm lost.....

0
77
Member Avatar for solaris249

[B]Is pascal vulnarable to heap overflow vulnarability?I think pascal doesn't any have problem with stack overflow attack.is it true in heap overflow attack too?does pascal any problem with heap overflow attack? Thanks.[/B]

Member Avatar for Mehrdadnk_20
0
256
Member Avatar for elva.tanaem

Hey Guys, I'd like to try using function and procedures on my project, I tried to write them on different unit say unit2 to be used in unit1. I find a difficulties using them in unit1. thanks in advance! Elva

Member Avatar for elva.tanaem
0
326
Member Avatar for rcflyer

Hi Everyone, I am wondering if there are any Delphi programmers out there that is using SamLogic's Calendar Component, I bought it last week and I am having problems. I would very greatful if anyone can give some help in using it. kindest regards Stephen

0
49
Member Avatar for kbrassfield

Can anyone tell me which utility package includes wwIncrementalSearch? I am trying to change a system that a programmer created that has passed away and left no documentation. Any help would be appreciated.

Member Avatar for kbrassfield
0
99
Member Avatar for eenceo

I made an mp3 player in Delphi. I set it up to register it's playlist file type. Now when you double click on a playlist in explorer it opens my player, like it should. How do I find out what file they clicked on to process? Google was useless for …

Member Avatar for eenceo
0
84
Member Avatar for richardscooke

In form1.setupForm() I have the following code which should close the application if there are any problems with connecting to the database. For some reason it just ignores the application.Terminate. Please can someone help. try database1.Open; except on E:EDBEngineError do begin Application.MessageBox('Error connecting','Error',0); Application.Terminate; end;

Member Avatar for ebi1
0
108
Member Avatar for corum10

Hello all, I'm perplexed here really. This is in Delphi 7 I Have a snippet [code]var U:string; UserPath:string; begin U := GetCurrentUserName;[/code] My get Username works fine calling on a function I wrote however when I am attempting to insert that username in a directory path it wont place the …

Member Avatar for ebi1
0
102
Member Avatar for Duki

A very funny (and borderline absurd) article I thought many of you would enjoy: [url]http://www.pbm.com/~lindahl/real.programmers.html[/url] :) -hope this is the best place to post this

Member Avatar for grumpier
0
106
Member Avatar for TerenceZ

I am using a BDCtrlGrid in a delphi unit. On the DBctrlgrid are two dbText's and one DBMemo. Now I moved the application that uses this unit into a dll. Now, when showing the form, the grid shows the 10 records in the table, but the DBMemo only shows the …

0
67

The End.