2,103 Topics
![]() | |
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; … | |
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 … | |
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 … | |
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 … | |
This example is demonstrates a solution for direct arranging By FlamingClaw | |
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 !!:( | |
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? | |
[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 … | |
Hi everybody, I have a project to do for the college, which has to insert, read, delete and modify records in a binary file (a address book or something else). I don't know yet how I'll do to alter the records. Let's suppose the I have the program below: program … | |
I have tried searching internet a little bit and found some useful information about the command [CODE]SetLength[/CODE] I just wonder about a few things as I would like an array to "constantly" be redefined in size. When using it in one part of my program, it will be defined in … | |
Hi, i'm python beginner. how to make that only use def, for, list, while .. [CODE] def comb(n,r): if r == 0: return 1 elif r == n: return 1 else: return comb(n-1,r-1) + comb(n-1,r) [/CODE] this code is very slow.... ah , I have to use recursion .! please … | |
Hi everyone! I'm trying to make a DDE Server app with Delphi. I put the components DDEServerConv and DDEServerItem, I made the connection between both and setted into "Text" property of DDEServerItem the line "Its Work!". Opened my excel and put =AppEx|DdeServerConv1!DdeServerItem1, and works fine, the excel shows "Its Work!" … | |
Hey guys im new to this programming thing and im starting of with pascal.I have a small problem here is the program i want to input a number and that number will determine how man times the for loop runs the problem is the program is compliling but is stoping … | |
How can I print the contents of one cell so that it extends into the next cell to the right. The cell on the right is blank. In an HTML table, what I'm trying to do would be equivalent to spanning two cells. How can this be done in a … | |
Im a beginner.. What i want to do is converting user textbox input into Float value. Okay to the point ----- [QUOTE]I have textbox with 3 inputlimit I want if user input '200' itll give result to 2.00 (floatvalue), and if user input '12.3' the result will be 0.123 (floatvalue) … | |
hi i seem to have run into a problem when adding records to a Typed file that already exists. I have used ReWrite method to create the file in the first place. [CODE] // Open the file for writing To AssignFile(F, ExtractFilePath(Application.ExeName) + 'bin\drivers' + (frm_vars.Driver1.Caption) + '\card.digi'); Rewrite(F); // … | |
hello how i can use setbkcolor in pascal ?(with sample please.... | |
![]() | This is my first post on daniweb :) and i am a beginner in C programming and i don't know so good english :) sorry! This is my program My problem consist of I run the program and i can't get to the [B]scanf("%c",&q);[/B] [I]/* Row 21 after printf. */[/I], … ![]() |
I have to make a Yahtzee game (in Delphi) for a project. I now have to write the pseudocode for the 'sixes' algorithm. I am using image lists and images for the dice faces, and am totally stuck on how to start the code. I am writing the proper code … | |
Hello everyone, I have to create a Palindrome Programme in Pascal using Pointers and Queues. A Palindrome is a word which when spelt backwards or forward if the same ex RACECAR or RADAR. I am having a problem actually creating the Palindrome Part of the Code. Thus Far, this is … | |
This is great that so many folks respond so honestly and clearly to posts from clueless people like me. So, thanks in advance for setting me straight. I'm in my 40's and looking for a career change. I've always had an interest in tech, but real-world experience is fairly slim … | |
The question is as follows: How long – number of steps -- does it take a drunken ant to fall off the edge of a square table if it starts in the middle? Perform a simulation to find out. Imagine an ant in the middle of a table with, say, … | |
i need to write program that calculates when airplane is going to lend. i started to write this but i have got some problems pls help but when i tested minutes and seconds are not true program airplane; var a,s,d,f,g,h,j,k,l,z,x,c:Real; writeln('When will airplane airborn:'); readln(a,s,d); writeln('How much time is airplane … | |
Hello there! I'm working at a new game and i have a little problem.. [ICODE]program MousTestProgram; uses Crt, Dos, Graph; var graphicsdriver,graphicsmode,errcode:integer; procedure ResetMouse; var regs : registers; begin FillChar (regs, SizeOf(regs), 0); regs.ax := $0000; Intr ($33, regs); if regs.ax <> $FFFF then begin writeln ('hardware/driver not installed'); halt; … | |
In high school I learned Pascal and C++. Everything from hello world to search trees, to graphical battleship with AI. Now I'm a freshman in college and in my CS1 class we are using Java, but after 2 months we are just now on arrays. Basically I was just hoping … | |
My name is Nick Bielinski and I'm currently in my junior year of High School. I live in the U.S.A. and i'm taking AP Java and Honors C++ in school right now, and I know it is going to get more difficult so I thought I would come here, so … | |
i have [CODE]program p1032; const n=10; num=4; var i:integer; a:array[1..n] of 1..n; procedure tipareste; var i:integer; begin for i:=1 to num do write(a[i],' '); writeln; end; procedure permuta(k:integer); var i,x:integer; begin if k=1 then tipareste else begin for i:=1 to k do begin x:=a[i];a[i]:=a[k];a[k]:=x; permuta(k-1); x:=a[i];a[i]:=a[k];a[k]:=x; end; end; end; begin … | |
Hello, I am using Delphi2010 and TOracleDataSet to access tables in Oracle. My question is how do I insert rows to multiple tables? I was told to use the AppendRecord method. Here is an example: [B]Example of value statements (this has been shortened obviously):[/B] Suffix := trim(edSuffx.text); Salutn := trim(edDear.text); … | |
hello.. How do I'm get the status printer from the EPSON STATUS MONITOR 3 ?, I've tried to detect the status direct from the driver, not from windows, but I just get the status from the windows, not from DRIVER, the difference : if from the windows after the printing … | |
Hay everyone. Im busy creating a program, but first you have to log in with a little form I made. I thought about using a registry entry, but I dont know how to use Tregistry. It should also be possible to use on a network pc with only client level … | |
am trying to rebuild my chat content by storing it into a stringlist first and then re-pushing it out but problem am having is with my font settings i can not work out how to add my font styles to the string has anyone got any code to show how … | |
![]() | Is it possible to write an operating system with Pascal Language (Free Pascal)? If yes, how to get started? Kindly somebody help me! |
Can sumone please give me a helping hand here am trying to do a simple sql search were it will look all items in SQL database and pull up the names that match but am having a abit of trouble with it it brings all my accounts up regardless of … | |
Hi All As you know One of the new figure's of SQL Server2008 is that you can Define a table as a stored procedure parameter. So my question is that how cane I pass a data set to Stored procedure as a parameter in Delphi? Thanks | |
like the tile says am looking for any demos or sites that show how to build a working spades/backgammon game I done my own search but come up with 0 dose anyone have any abandoned projects there be willing to share? thanks hope sumone can help | |
like the title says how to calculate 10 days from a date with delphi, am after simple way to get 10 days trial from current date of usage can anyone help thanks :) | |
I'm creating an installation program using Inno Setup and I have all the custom install pages made but I need to know how to set whether or not a component will be installed. Normally there's a premade page which allows the user to select which components will get installed and … | |
Hi, I am new here Need help here is my code [URL="http://paste.ideaslabs.com/show/OJ17OQW1Fh"]FULL CODE HERE[/URL] , but function y=10^x doesnt work right! well it works great while x = (0,1,2,3,4....) but when x is negative (-1,-2,-3) it doesnt work. I have been trying to fix it for a while now i … | |
Okay so I am working on small program, and halfway through I decided to make a login screen at the start. How do I make it that the login screen shows up before the main form? | |
Hello all, I want to check in a external process if an address X, that i'll call here $00000001 is "NOPPED", i know that an address with NOP its byte is x90, so my question is: Can i use ReadProcessMemory putting the value x90 as the IpBuffer or do you … | |
The function Delay() allows access to other events during the delay. For instance a certain key could be used to interrupt a lenghty delay. The Win32 API function Sleep() ignores events, maybe it should be called DeepSleep(). | |
I want to save the contents of my richedit to a plain text file. With my current code, only a partial of the richedit's text ends up in the plain text. Could you please tell me what's wrong with my code: [CODE] var fSave : TextFile; begin AssignFile(fSave, dlgSave.FileName + … | |
Hi Guys and girls, I'm trying to save the font settings of my component and load them back in via xml. I have xml working with saving and loading of every property except Font. When I save font its as an integer. But when I load the value back in … | |
[CODE] void customer (struct data *cust1); void menu(); void printReceipt(struct data *cust1, float &balance); struct data{ char name[20]; int accno; }cust, *cust1;[/CODE] above is an excerpt from my completed c++ program. my c++ coding is running well and i dont have a problem with it, but i am required to … | |
Actually i am trying to create some patterns using loop like pascal's triangle etc. But the concept of loop is still not very clear to me as i am learning c language myself without any professional help. would anyone please elaborate me with the help of an example and explain … | |
Okay so I have a program, but when it launches the user has to enter a username and password. This login system is on a different form from the rest of the program. There are two things I would like to implement, but I need some help. This is for … | |
Alright, I have a members area, area.php, and I used mysql to find the userlevel and display content depending on the userlevel, 1 for user, 2 for admin. I made it, but it displays both the user and admin for 1, and 2. [CODE]<?php // Members Area // session_start(); $usernamee … | |
I'm encountering some problems with converting Delpi7 pascal to C#, maybe a fresh set of eyes will see what I can't. Pascal [CODE] procedure TForm1.Button5Click(Sender: TObject); var Data: TData; i: integer; s: string; begin if not (CheckBox1.Checked) then begin StatusBar1.SimpleText:='Bidirectional operation not allowed'; exit; end; for i:=0 to 255 do … | |
Hi, I downloaded AecRijndael v.1.16 encryption component for Delphi 5 from Torry.net. There is no help included and I can't work out how to use it. When it is installed it has three pertinent properties. Cyphermode - which can be ECB CBC CFB OFB Keysize - which can be SMALL128 … | |
Hi, I am trying to start to learn Delphi but I am unable to find any useful resources. I am not even able to find any IDE to download !!! I am very new to Delphi and need your help. Give me some tips to start from and then from … |
The End.