2,103 Topics

Member Avatar for
Member Avatar for Nutster

*I wrote this a few years ago as part of a C manual I wrote, but did not finish. I thought it might be interesting to the people on DaniWeb.* # Programming Language Generations # Different types of programming languages are often grouped into large categories known as generations. Each …

Member Avatar for <M/>
1
399
Member Avatar for PolarClaw

Hello everyone, im new here and dont know yet most of the policies.. but i have been reading lots of your C++ codes, mostly, codes made by Narue.... i wonder if you someone could help me make a code for pascal's triangle wherein the ouput would look like a triangle …

Member Avatar for H A hashim
1
1K
Member Avatar for Qazinix

I am working on my first Client server program. The client will have to connect to the server however there is no way to know what the server ip will be so this needs to happen dinamically, at least the first time the program runs. The clients will receive strings …

Member Avatar for Qazinix
0
324
Member Avatar for alex910TN

Hey guys, I have a silly issue that is bothering me. I am trying to read an unknown amount of lines from an input file and basically stop when I reach the EOF. I probably does'nt matter but the assignment is to create a simple lexical analyzer/scanner for a mini-subset …

Member Avatar for deceptikon
0
6K
Member Avatar for astian

So... I am sorry if I have posted the question at the wrong place, yet I couldnt find a better place. Anyway, my problem is as follows: A week ago, we had to bring back to life some old projects of the firm. The projects are ... not too complex …

Member Avatar for pritaeas
0
665
Member Avatar for joejodre

plz i need a pascal prog which input 2 values,call dem A and B.print the value of the largest variable. (2)modify the prog above to accept 3 values A,B,C and print the largest.tanx.

Member Avatar for pritaeas
0
157
Member Avatar for cucolino

Hello Once again, I'd need your help. I was messing around (if I say so, although I only set the formstyle properties to mdiform and mdichild once, and then reset them to Normal, ever since my problem appears) formstyle property, and got some strange behaviour for which can't seem to …

Member Avatar for cucolino
0
293
Member Avatar for canadaaaaa

this is an assignment i recieved i have been trying to get it to work but it wont.i edited a couple times but i still get the same messages can anyone assist? The purpose of the program is to assist with the check-in and searching of guests registered at the …

Member Avatar for blesiw
0
434
Member Avatar for hambu

How to generate random number in Free Pascal between 1 and 1,000,000? I have used a variable type as LongInt, Real, Integer, but there is always an RangeError. But random number between 1 and 33,333 is working correctly. Program Random; var a: ...; begin a:=random(1000000); end.

Member Avatar for cereal
0
338
Member Avatar for davecoventry

Depending on a variable 1-7, I am interested in ANDing a byte value to to get that number of bits. Currently I'm doing this: function getMaskedBits(num, Bit_location: Byte): Byte; var masks: array[1..7]of Byte=(127,63,31,15,7,3,1); begin Result:=num and masks[Bit_location]; end; is there a better (or more efficient way of doing this?)

Member Avatar for davecoventry
0
113
Member Avatar for Blousey17

This procedure is called just before the answer is written to a binary file to ensure it is in the correct format. It works but I need it to repeat until it is an integer. I was trying to use a 'repeat','until' but wasnt sure what the 'until' condition woudld …

Member Avatar for pritaeas
0
240
Member Avatar for Niatia

Hi, I'm a bit of a newbie to Pascal and I'm trying to create a simple program to convert binary numbers to decimal, I'm unsure of how I can disallow an input that is not binary, this is my code: var Validation : boolean; Binary, Number : String; Decimal, index, …

Member Avatar for pritaeas
0
332
Member Avatar for jaron1611

Morning, I am loading an xml file where i want to search low level node name if exists. For example: <xml> <A> <B> <c></c> <d></d> </B> </A> </xml> so i have IXMLDOMDocument and IXMLDOMNode, i need to load an existing xml file and to search the node <d> where i …

Member Avatar for pritaeas
0
59
Member Avatar for jameosa

I need help to Write a PASCAL program that reads in ten values and then sort them using the bubble sort method

Member Avatar for pritaeas
0
265
Member Avatar for jaron1611

Morning, I am new to xml with delphi. My problem is that i know how to build am xml file, the output is something like this: **<EXPORT> <IMPORTMODEL>1</IMPORTMODEL> <SESSION></SESSION> <STARTDATE>26-01-2011</STARTDATE> <ENDDATE>26-01-2011</ENDDATE> <VOUCHERS> <VOUCHER> <AUTHOR> X </AUTHOR> <INPUTDATE>1/23/2013</INPUTDATE> <REFERENCE>M1000009</REFERENCE> <ONDUPLICREF>N</ONDUPLICREF> <JOURNALTYPE>STANDARD</JOURNALTYPE> <DESCRIPTION>This is a test for the description of the voucher …

Member Avatar for pritaeas
0
219
Member Avatar for Ritesh_4

Hello, I need some help replacing special chars like 'à,é,è,...' in strings with their corresponding ascii char values. I do know the string replace method thus replacing these special chars with normal alphabets, with the example below: `$vSomeSpecialChars = array("á", "é", "í", "ó", "ú", "Á", "É", "Í", "Ó", "Ú", "ñ", …

Member Avatar for pritaeas
0
303
Member Avatar for DatSik

Hello all, I once had a program (.exe) that was a delphi tutorial, you could click an option and it would show you what it did and tell you how to do it.. i lost it in a format and im unable to locate it!, could someone point me in …

Member Avatar for pritaeas
0
152
Member Avatar for joejodre

Hi everyone,plz i need help from anyone to check if this program is writthen correctly { A program to read two values A and B and print the highets value } Val A : integer ; Val B:integer ; Begin A : =10 ; B:=12 ; if A > B …

Member Avatar for joejodre
0
125
Member Avatar for cucolino

Hi. So, just switched to RAD XE3 to use Metropolis UI feature, and therefore started to completely rearrange and redesign my app to make it a little nicer, only this time I've chosen FireMonkey Metropolis App, since it has some good components, such as TSwitch (slide switch). Everything seems to …

Member Avatar for cucolino
0
472
Member Avatar for aleksxpo

Hello , i am new to this forum/community and i came here to get some help with programming. So i have some solid basic knowledge in Python and Pascal .... but i want to learn some languages and skills that will help me earn money , i know i also …

0
51
Member Avatar for cucolino

Hello again. I'm having issues finding any advanced info about touch support in Delphi. At the moment, I can't seem to find a way to add the scroll functionality to my app, so that it'd work as on metro apps in Windows 8 (such scroller as the Metro Internet Explorer …

Member Avatar for pritaeas
0
586
Member Avatar for Floppy1

Hi, I need help with coding so I can see the WORK week. In this code I only see the whole week. "glob_calendar_id:=oOutlook; //Store object ID oOutlookCOM:=oOutlook.GetComObject; oOutlookCOM.Folder:='Calendar'; //Calendar view oOutlookCOM.View:='Week'; I need to see WORK week. Help please...

0
152
Member Avatar for cucolino

Hello. I wonder if anyone can tell me something about calling the external dll file from delphi. I have a main form, which has the procedures locating the dll file, and then I have about 30 other forms, in which I use these commands. Now my question is, is it …

Member Avatar for pritaeas
0
294
Member Avatar for gameguy91

can any one pleace help me to code this program i have no idea how to do it. it will be very greatful if any one can help me thanks

Member Avatar for pritaeas
0
107
Member Avatar for jfraizer
Member Avatar for Ben Ashton

I have a project at school in which I have decieded to make an encryption system which I am struggling with quite a bit at the moment - just finding resources to use and even a guide to follow. The only half decent thing i can find on the web …

Member Avatar for Ben Ashton
0
904
Member Avatar for earlybirdsean

[B]Hello programming experts,[/B] I have a problem. Is it possible to make an OS with VB.Net with C, C++, Objective C, Assembly language, FreeBASIC, C#, BASIC, Java, Object Pascal and with a bit of machine language? And if possible how to mix the languages? And could you give me a …

Member Avatar for almondjoy
0
377
Member Avatar for KE50

When formatted text is pasted from MSWord to a TRichEdit control, the bullets are well formatted (on the display) but after; Fetching the rtf data from the TRichEdit control using TStringStream, Saving the stream's DataString to a database and then Loading the saved rtf string back to the TRichEdit control …

Member Avatar for pritaeas
0
285
Member Avatar for alex910TN

Hey guys I am trying to prompt the user to input a file name, and save that file name into a packed array of characters then use that inputed flename to perform some opertions. FileName : text; Line = PACKED ARRAY [0..79] of char ; writeln('Please input a file name …

Member Avatar for alex910TN
0
196
Member Avatar for DelphiXE2User

Hi, I am in need of converting a project which is in Delphi 5 to Delphi XE2. When I run the same Delphi 5 code, in XE2 , I get some errors. In Delphi 5, we have used NMFTP component for file transfers. But here netmasters is not available. Instead, …

Member Avatar for pritaeas
0
351
Member Avatar for TimBob12

I am fairly new to Pascal and I have been attempting to write a hangman game. I am aware that there are probably so many better ways to do this than I have done but I am having some problems where the exit variable is not met because the current …

Member Avatar for pritaeas
0
282
Member Avatar for Fireprufe15

Okay, so I have a program that deletes an entry from the database. It is linked to the program with an ADOQuery. How can I check if a record with a certain primary key exists in the database? And then it has to take that ID, and then report to …

Member Avatar for pritaeas
0
68
Member Avatar for wisuju

Please guy's how do I solve this question using pascal? just new here and in programming. Am using free pascal. In the given string of characters move all the letters to the beginning of the line, and digits to the end of the line. For example: the string "a13Bc1de2F G.! …

Member Avatar for pritaeas
0
76
Member Avatar for alex.myrick.39

I am working in Turbo delphi using VCL for aplication and I am in an urgent need of someone explaning me how to draw curves for parabolic shot. I need to learn how to make the line in a slow motion making it draw the flight from the starting point …

Member Avatar for pritaeas
0
170
Member Avatar for alex.myrick.39

Hey guys I have a question and I hope someone can answer it. I've been having many problems in trying to find an answer to if I would be able to load a Turbo Delphi project I made this year into my ipod touch.

Member Avatar for pritaeas
0
70
Member Avatar for alex.myrick.39

Why doesn't my Turbo Delphi project run in the Delphi XE?? Can someone please answer me this! I realy need it to work if not I'll have to do it all over again. :S

Member Avatar for pritaeas
0
97
Member Avatar for cucolino

Hy there. I have some code where I store data for 365 records (for every day in a year) in delphi, some kind of list as far as I understood (a good man!!! Sir Rufo on stackoverflow helped me with that part of code, writing whole example for me! Thanks …

Member Avatar for cucolino
0
427
Member Avatar for alex910TN

I got another question. I am passing an array of characters to a function, but when i get into the function, before doing anything I want to make sure that the array was passed in correctly so I attempt to print the contents and it does nothing. So i assume …

Member Avatar for pritaeas
0
104
Member Avatar for alex910TN

Hey guys. I have the following loop structure condition statement: while ( ord(UpperCaseWords[i]) >= ord('A') and ord(UpperCaseWords[i]) <= ord('Z')) do Problem: When a compile, I get an error saying: "Error: Incompatible types: got "BOOLEAN" expected "LONGINT" " using Dev-Pascal 1.9.2. Description: UpperCaseWords = PACKED ARRAY of Characters that may contain …

Member Avatar for pritaeas
0
206
Member Avatar for Blousey17

1. I need to store numerous records in one binary file. Each of the records needs to include a name and an answer to a question. I know how to set up and add one record but how do i set it up so that I can add others at …

Member Avatar for pritaeas
0
584
Member Avatar for hanzo2001

Hello I have been trying to get past certein exercises in Pascal but for some reason I always run into problems that I don't understand. I have the following (synthesized) TYPE Triangle = RECORD x, y, z : word; END; Triangles = ARRAY OF Triangle; {more code} TriangleSize : integer …

Member Avatar for hanzo2001
0
567
Member Avatar for John B.

I assume this is simple enough, when you know how :) I retrieve 2 files, pricelist with multiple information such as number, price, desciption and so on, the 2. file is discount file, with 2 fields : discountcode;discount like G30;48 which means discountcode = G30 which equals 48% I have …

Member Avatar for John B.
0
189
Member Avatar for Asuna kyoko

Program random_no (input, output) ; Const m=100000000; m1=10000; q=31415821; Var i, p, No: integer; function mult(r, s: integer) : integer; Var r1, r0,s1,s0: integer; begin r1 :=r div m1 ; r0:=r mod m1 ; s1 :=s div m1; s0:=s mod m1; mult:=( ((r0*s1+r1*s0) mod m1)*m1+r0*s0) end ; function random : …

Member Avatar for deceptikon
0
114
Member Avatar for Swith

I have been trying to write a program in Pascal (free pascal compiler, Lazarus IDE) that solves an uncompleted entered sudoku. I am moderately new to programming/pascal/lazarus, and so I have no idea how to use the debugging features. I have read through the code several times but I can't …

Member Avatar for pritaeas
0
1K
Member Avatar for davecoventry

I'm trying to port opensource C++ code into my own Pascal application. Specifically, I'm using libredwg source to read an AutoCAD drawing file so that I can extract text attributes and populate a database using Lazarus. char* copy_bytes_16(char *dst, char *src) { *(uint64_t*)dst = *(uint64_t*)(src + 8); *(uint64_t*)(dst + 8) …

Member Avatar for triumphost
0
219
Member Avatar for MikalT

I am trying to open an instance of Excel 2007 and load some text into a new file's cells (such as a list of something) through my Delphi4 program. I have already tried the ShellExecute and ComObj (variant) methods. ShellExecute works fine on the Windows XP platform, but not on …

Member Avatar for pritaeas
0
195
Member Avatar for DelphiGuy

Basically I have a Delphi application which downloads some data on run time, it basically executes Form.OnCreate; and then ENABLES a TTimer component to do the downloading. This has been working fine for me as at least the user sees the interface whilst it's loading but now I have a …

Member Avatar for pritaeas
0
505
Member Avatar for turbomen

Code a decision using an IF, THEN, ELSE statement (2 branch decision) Code a one branch decision using a null else statement The following is my answer: [CODE] program Negatives; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var balance, posNeg:integer; begin randomize; writeln ('Generating your bank balance'); writeln ('Please wait .....'); sleep …

Member Avatar for htir
0
205
Member Avatar for gelmi

**Enter row number: 4 Sum of numbers in row 5 is 31. Sum of all numbers above 4 is 15. this should be the output look like.. can someone help me? thanks.

Member Avatar for Nutster
0
427
Member Avatar for cmicolis

In other threads I read that Delphi is not prepared, as a net for today, but the comparison was made on VCL in Delphi 7. Actually, the latest version of Delphi and its library is XE3 is FireMonkey I had seen the comparisons between C # and Delphi. I try …

0
156

The End.