2,103 Topics

Member Avatar for
Member Avatar for rajaraman1969

Hi.. I have a report developed in Crystal Report v10. Using Delphi 7, I should be able to load an image file dynamically in the said report. The Image file will be available in the local specific path. The file name will be known based on the query result set. …

0
74
Member Avatar for EAnder

I am attempting to get the username of the current user on a windows computer using windows API. I am using the GetUserName function in the Windows Unit. I am having some problems with giving the correct data types for function arguments. Any help would be greatly appreciated. [code] program …

Member Avatar for rapistebe
0
981
Member Avatar for lighten123

To make my question fully understandable to you i attach an image demonstration.Please see this: [img]http://i39.tinypic.com/ruzona.jpg[/img] Well i developed my software,after finishing installing i want to show a window like in the image(from Bitcomet 1.19). [b]But that software is built on NSIS and mine on INNO.[/b] [b]So my requirement:[/b] [code]1.Show …

0
109
Member Avatar for delphiuser1111

Hi, this is the first time i have ever used Delphi and was wondering if you could help me; i understand how to writeln etc. but I'm having trouble with programs such as making a program that requires the user to write a message, and how many times they would …

Member Avatar for wylddev
0
87
Member Avatar for chickenmcnugget

hello there im sorry i can not help you with your problem and like i said i am very sorry i am looking for some help myself first i do not know how to post a question on here second i need help with a program it is in pascal …

Member Avatar for wylddev
0
258
Member Avatar for fillit

program p; var a,b:integer; c:real; forward p2; {for procedure p1 to call procedure p2} procedure p1 (x:integer; var y:integer); var c:integer; pt:^integer; {pointer declaration} begin { (1) } writeln(a,b,x,y); new (pt); if (x<2) and (y<2) then if x>y then begin y:=x; writeln(a,b,x,y); p2(x,b) end; dispose(pt); end; procedure p2 (x:integer; var …

Member Avatar for fillit
0
242
Member Avatar for rajaramans

Hi, I am using Delphi 7 and Crystal Reports 10. I have a requirement where I need to load a picture dynamically in the Crystal Reports 10. Actually, in Crystal Reports 10 we don't have the feature of dynamic loading. But, from Crystal Reports 11 version and above, it is …

0
50
Member Avatar for 42below

Hello to all, I'm a 44 year old with a little knowledge about computers and programming in general (a little knowledge is a dangerous thing!) I bought a book on Python in 1997 and started from there really. University courses introduced me to Pascal back in 1984. In the last …

Member Avatar for qlipboard
0
40
Member Avatar for sirko

I've been massing with this problem for almost a week. It's about DFS search in a binary tree. It compiles well but when i run it I get exitcode 216 error. Can anybody help? program prg; uses crt; type ptrnode=^node; node = record data: char; l,r: ptrnode; end; pnode=^rnode; rnode=record …

0
97
Member Avatar for yapkm01

I have a Computer Science degree (long2 time ago) .. I do know Java OOP but i am now trying to pick up C++. I do have C and of course data structure using C or pascal. I have started reading Bjarne Stroustrup book (The C++ Programming Language - Special …

Member Avatar for mattjbond
0
159
Member Avatar for Profyanis

Hi, I am trying to add data from a DBEdit component to a ComboBox, but i get an error that says : 'Incompatible types: 'TStrings' and 'TCaption'

Member Avatar for FlamingClaw
0
2K
Member Avatar for HelpMeIT

I am currently trying to get the text from a DBLookUpComboBox but it wont let me retrieve it i have a number and 2 strings in the box which is an ID and first and last name. I cannot retrieve anything from the box unless i use a edit box …

Member Avatar for fayyaz
0
527
Member Avatar for sirko

Pascal programming DFS(depth first search) and BFS(bredth first search) problems.? These are the algorythms for searching a tree strucutre or a graph. Could anybody show me (or send to me) where can I find these problems solved? (Programs need to be Pascal console apps and data should be read from …

Member Avatar for sirko
0
1K
Member Avatar for masq

[CODE]function getFileName(fileDir : string) : string; var fileName : string; tempNum, i : integer; tempChar : char; begin tempNum := 0; for I := Length(fileDir) downto 0 do begin tempNum := tempNum + 1; tempChar := fileDir[I-1]; if tempChar = '' then break; end; Result := RightStr(fileDir, tempNum); end;[/CODE] It …

Member Avatar for FlamingClaw
0
117
Member Avatar for sirko

Hi! Does anybody know how to write a Pascal app that would remove blank lines from a text file. function RemoveBlankLines(OldFile: string): string; var fi,fo: Text; s,NewFile: string; n: integer; begin result:=EmptyStr; if FileExists(OldFile) then begin //rename old file .bak, n:=Length(OldFile); while (n>1) and (OldFile[n]<>'.') do Dec(n); n:=Length(OldFile)-n; NewFile:=Copy(OldFile,1,Length(OldFile)-n)+'bak'; RenameFile(OldFile,NewFile); …

Member Avatar for FlamingClaw
0
266
Member Avatar for iarmza

I've never learn about pascal language and my teacher had some homework about cache working and he told me write it in Pascal. This is sample running. Main menu 1. Open fake disk 2. Read block to file 3. Write block from file 4. Close fake disk 5. Exit Enter …

Member Avatar for Nick Evan
0
213
Member Avatar for famousb

Greetings all, I've been programming local applications in Delphi quite awhile, but i only consider myself a so-so programmer... and i've never done anything server based. I also do a fair amount of web/PHP programming. That said, i'm trying to create a small program i can run on my Windows …

0
70
Member Avatar for Forte1292

I need to create a linked list where I can continue to input integers and I'm not sure what I'm doing wrong, but every time I run it I'm allowed to enter two numbers and then I get exit code 216 saying I'm accessing memory I'm not allowed to. [CODE]Program …

Member Avatar for Forte1292
0
167
Member Avatar for sirko

The delphi app should subtract two sets that would represent two graphs Hi there! I've got a problem that I can't solve. Can anybody help me? The app should subtract two graphs (in this case a graph is meant to be a set of points) here's the beginning. program assignment; …

0
104
Member Avatar for agrarian

I have some code in PHP which I need to translate into Delphi: [CODE]$xsl = new DOMDocument(); $xsl->load('http://www.fda.gov/oc/datacouncil/stylesheets/spl/spl.xsl'); $proc = new XSLTProcessor(); $proc->importStylesheet($xsl); $xml = new DOMDocument(); $xml->load($xmlFile); $domTranObj = $proc->transformToDoc($xml); $strHTML = $domTranObj->saveHTML();[/CODE] What I need to do is take a snippet of XML (from a database field), transform …

Member Avatar for agrarian
0
167
Member Avatar for XStrong

Here's my code: [CODE]#include <iostream> using namespace std; int Factorial(int n) { int total = 1; while(n!=0) { total = total * n; n--; } return total; } int Combinations(int n, int k) { int count = 1; for(int i=0; i<n; i++) { for(int y=0; y<(k-i); y++) { cout << …

Member Avatar for VernonDozier
0
129
Member Avatar for GregPeters

Hi all, I have a procedure which needs to be used by a wide range of functions. I have a created a very basic program which should highlight my problem : [CODE] program untitled; function addnumbers(num1 : integer) : integer; begin result := num1 + 3; end; procedure sequence(I want …

Member Avatar for adraganov
0
1K
Member Avatar for fayyaz

Dear friends I have some picture stored to SQL Table as Image Field. but I Don't know what is the format of this pictures they may be JPG or BMP format. for retrieving this images I mast know what is the format of each stored Picture. is any method to …

Member Avatar for pritaeas
0
95
Member Avatar for aditri

i/m try to record my data from gps to array but i get so much problem here [ICODE]unit tgn_Main; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, oaGPS_NMEA_Extractor, ExtCtrls, ComCtrls; type TfTest = class(TForm) gbStrigs: TGroupBox; lbLog: TListBox; gbPosition: TGroupBox; lLongitude: TLabel; lLatitude: TLabel; lAltitude: TLabel; gbDateTime: …

0
61
Member Avatar for shriram143
Member Avatar for mjdodd
0
116
Member Avatar for pavel.pavel

Hi guys, I am doing an exercise we got in school and I am stucked at the point when I think everything is correct, but obviously is not :-). Target: Make a very simple pascal program, which opens a text file with three variables(name, sex, salary) and returns the highest …

Member Avatar for FlamingClaw
0
367
Member Avatar for iliali16

Guys I am not a good C programmer. I ahve experience with object oriented paradigms such as Java and C# but I never programmed in C or Pascal. I have done some tutorials in C and I seem to grasp some of the ideas of the language but as I …

Member Avatar for jephthah
0
289
Member Avatar for Singlem

I want to let the user select a .rar file. From there the application should unzip it and move the files to a folder that the user specify. If the files exists it should replace them by default. I'm using a opendialogbox to select the .rar folder, but from there …

0
80
Member Avatar for dyonysos

hi! I use client/server socket components to send a file. a client app sends a file and the server app gets it. I know how to display the copying progress in a progressbar when receiving data, but how can I display in a progressbar how much of the file has …

0
60
Member Avatar for turbomen
Member Avatar for turbomen

Dear All, Could you tell me what is wrong or missing for my coding? Cheers, [CODE] unit Example3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Edit4: TEdit; Edit5: TEdit; Button1: TButton; Button2: TButton; Edit6: TEdit; …

Member Avatar for finalist
0
185
Member Avatar for Vasil54

___Theme: PGF - the improved formatting; AUTOMATIC localisation / CORRECTION of structural ERRORS in initial codes Pascal and Delphi. ___ Keywords: debugging, formatting, support, reliability, visualisation, documenting, Pascal, Delphi, FreeWare. ___ Dear programmers. ___ Formatter of the programs initial codes, used in modern practice of programming, are based basically on …

Member Avatar for Vasil54
0
236
Member Avatar for Spudgun

Hi This is my first post and I am new to delphi so if this sounds like a stupid question I apolagize. I am trying to enter data into a Multicolumn listbox. I know I can use either the Tabwidth or mulitple columns but I cant get either to work …

Member Avatar for Spudgun
0
100
Member Avatar for GregPeters

How Would I go about: 1) Counting the number of lines in a text file 2) Counting the number of words in a text file. I know that I have to Use AssignFile(), and many other file operators, I just don't know how to do this. Any help would be …

Member Avatar for Singlem
0
72
Member Avatar for am.daiz
Member Avatar for hosamath

Hi friends... I have a series of points which are actually the points that form a circle... Can anyone help me how to get the circle image when i load these points as input... A simple code example will be helpful... Thanks in advance....

Member Avatar for pritaeas
0
252
Member Avatar for gerhardjl

Hi, How can I make a button transparent (tsxButton) in order for it to appear 'invisible' on the target application? The tsxButton must still retain its standard properties. This means that if the user know where the button is on the application, moving his mouse on the area, the user …

Member Avatar for gerhardjl
0
98
Member Avatar for FlamingClaw

Author: [I] ================================================================================ Crt Unit Read-Me By: Will DeWitt Jr. (edge@boink.net) Mar 21st, 2003 ================================================================================ BRIEF NOTES AND INFORMATION: This unit was created primarily to support my development of console mode applications under Delphi. I've tested this unit and had it successfully works under Delphi 2, 3, 4, 5, 6 …

0
130
Member Avatar for instinctfx

Hey I usually use RTTI to access object when reading or writing them to a dataset so i have prior knowledge of what the field required Example [CODE] if vPropInfo^.Kind = tkFloat then begin if vField.DataType = ftDateTime then vField.AsDateTime := FloatToDateTime(GetFloatProp (thisObject, vPropInfo)); else vField.AsFloat := GetFloatProp (thisObject, vPropInfo)); …

0
84
Member Avatar for Simon180

I have a small problem with my code below when making my userlist when i connect a user it doubles the user name in list and am unable to find out why i posted my user list code below i be grateful if sumone can help me when i login …

Member Avatar for Simon180
0
120
Member Avatar for Unidennn

Well, i cant figure how print to the spaces before the *, this is how it is suppose to look: * *** ***** ******* EDIT: dunno how to get it to work but it should be a pascal triangle and this is what i get * *** ***** ******* heres …

Member Avatar for phpbeginners
0
307
Member Avatar for gerhardjl

Hi All, I wish to source a Std Serial Comms Component, hopefully freeware, for Delphi 6 or 7 Can someone pass a link or email me? [email]telkomgjl@telkomsa.net[/email] Thanks! Gerhard

Member Avatar for PatrickSharp
0
66
Member Avatar for turbomen

Dear All, Please let me know what is wrong or missing for it from the attached document. One of them is my work (T9.zip) and the other is the demo Cheers,

Member Avatar for finalist
0
179
Member Avatar for JoshC

hi, i am currently using delphi 2007, i am wanting to be able to add a image(prefrebly jpeg) into a access database. i have tried doing this but i cannot as when it adds i get several errors, or it does not insert correctly, has anyone made any code or …

Member Avatar for JoshC
0
96
Member Avatar for Singlem

Using a dbexpress component to connect to a mysql DB. If I want to commands like Insert, Delete and UPDATE I use a query. The question is How can I let the user Write the commands into a Richedit or Memo, what ever is the best. And then load those …

Member Avatar for finalist
0
147
Member Avatar for gerhardjl

Hi, I wish to source a 'StopWatch' Application (Prefer source re-compilable) with Start/Stop/Clear buttons. Anyone here done something like that and would like to share the code with me? I use Delphi 6&7 Greetings, GjL

Member Avatar for dmitry_n
0
107
Member Avatar for TDMarko

Hi there DaniWeb community, I have a problem with such a task: I need to create a programm that will open, give option to modify, and save modifications to other text file (with other name). All I did so far is programm that can open a .txt file and read …

Member Avatar for FlamingClaw
0
157
Member Avatar for Singlem

Hay I'm just spent hours on google and other sites, can't find any help. I just wrote my 1st major application and now I want to make it installable. Is there components I can download or built in that I can use to do this?

Member Avatar for Singlem
0
98
Member Avatar for turbomen

Dear All, Could you tell me how to do for it? One of the zip is the demo2.zip and the other is my work. Please give me some of the ideas. Cheers,

0
66
Member Avatar for Alexmwillis

Hi, Can anyone help explain why, when I've created a simple VCL Form application, switching between this application and others sometimes changes the order of the application's forms. To recreate I did the following; Created a test app (delphi 2009) with a main form and 2 child forms, only code …

0
67

The End.