Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K

19 Posted Topics

Member Avatar for tformed

OK, now that everyone has had a good joke about this - I had to do this years ago using a very primitive BASIC. I can't remember the exact algorithm, but I reasoned that guys like Sir Isaac Newton and his crowd didn't have calculators or even log tables and …

Member Avatar for vmanes
0
3K
Member Avatar for wraph

It is correct that The Bill didn't write DOS - see [URL]http://inventors.about.com/library/weekly/aa033099.htm[/URL] for a quick history. Also note that the Altair BASIC was also used on the TRS-80, which sold a lot more units than Altair. Windows is indeed C and assembler, with C++ in the later versions. As for …

Member Avatar for jwenting
0
670
Member Avatar for JJarvis

You are on the right track, and yes you need a loop. However, whoever told you that using IF was lazy programming has no idea what they are talking about! Conditional execution is one of the cornerstones of programming. Example: what happens if you enter Y or Z? You go …

Member Avatar for Duoas
0
979
Member Avatar for Terry Robinson

I've used Delphi for the past 12 years, but now I need to get up to speed in C#. Since both systems were designed by the same person, there are lots of similarities. However, C# seems to have a big gap when it comes to centralized data access. All of …

Member Avatar for JerryShaw
0
424
Member Avatar for kimmorleykiller

You didn't say what kind of Pascal you're using. You didn't tell us how you store your data (array, list, text file, database...). And we can't comment on wasted code without seeing any code. So, please give a few more details!

Member Avatar for Terry Robinson
0
121
Member Avatar for Terry Robinson

I'm an experience Windows programmer and I'd like to do some work for my wife's school on Mac OSX. The trouble is, I have found no decent programming tools for that system. When I work on Windows I use Delphi or Visual Studio. Does a visual, objected oriented RAD system …

Member Avatar for Member #46692
0
148
Member Avatar for docdoc

You need to set the Form's [B]KeyPreview[/B] property to True before you can capture keyboard events.

Member Avatar for docdoc
0
126
Member Avatar for dodol

A Zip file has nothing to do with Delphi (the programming system, anyway). In most cases, you can just run the Zip file at download and it will unzip its contents on your computer. In some cases, you need a program such as WinZip to unpack the file but most …

Member Avatar for L505
0
253
Member Avatar for edynas

I've never used MySQL, but since your structure is the same in all cases, it makes ssnse to put everything into one big database with a key to indicate which user each record belongs to. That will probably save you a lot of trouble in the long run. For instance, …

Member Avatar for pty
0
188
Member Avatar for tech291083

1. what age they started programming. About 30, but then again that was 30 years ago when the first Radio Shack TRS-80 became available. It used "Level I BASIC" (by Bill Gates and Paul Allen - too bad we didn't stop them then). 2. how did they learn the language …

Member Avatar for bala24
0
308
Member Avatar for Gammatech

Here is another thing which might be of use. I have seen instances where a program jumps to unexpected code as it is shutting down. For instance, Delphi may the OnActivate event of an open form even when the program is terminating. Apparently, the form needs to become active before …

Member Avatar for pty
0
164
Member Avatar for marsheng

I assume you are using a TTable or TQuery to handle your dBASE file. In both cases, those classes are descendents of TDataSet. The Delphi Help system states the following concering the Insert and InsertRecord methods: [I]For dBASE, FoxPro, and Access tables, the record is physically appended to the dataset …

Member Avatar for dugjohnson
0
222
Member Avatar for cirisha

The problem is that you are referring to the TYPE TSam1 when you call your method. That is only possible if the method is a class method (and if you're a new student, you won't have heard about class methods yet). What you need to do is declare a variable …

Member Avatar for Terry Robinson
0
563
Member Avatar for chickenmcnugget

As long as you're at it, here is how you get the program to run your Prime method when the Enter key is pressed without including a button: 1. Set the [B]KeyPreview[/B] property of your form to True. 2. Go to the Events page of the form and double-click in …

Member Avatar for Terry Robinson
0
155
Member Avatar for Gregry254

You state that valid scores are 0 through 20 and the number of scores is unknown, so your condition is correct. You need to do the loop until an invalid score (say -1) is entered. Within the loop, you need to add the score to a tally variable and incriment …

Member Avatar for Terry Robinson
0
134
Member Avatar for NOSUME

You need a global variable which maintains the highest score seen so far which is updated in your While loop. Be sure to preset it to zero. You could also add additional global variables to save the name when a new high score was encountered [COLOR=#444444][B]Global variable highscore, HighName[/B][/COLOR] [COLOR=#444444][B]Highscore …

Member Avatar for Terry Robinson
0
140
Member Avatar for Terry Robinson

Hi, My name is Terry. A bit older than average (60 - but my wife was born the same month I graduated high school, so she says that takes off 10 years). I've been programming since '79, used BASIC, Assembler, Forth, dBASE, Paradox, Clarion, Turbo Pascal, C, Modula-2, C++, Delphi …

Member Avatar for eXceed69
1
109
Member Avatar for Terry Robinson

I have an Access 2002 managed replica set running on about 80 sites which communitcate via Indirect Synchronization with a hub replica on a server in a State Government network. Some users are connected directly, some are on DSL and some of us are on satellite or even dialup. All …

0
70
Member Avatar for adotl

You didn't say what Pascal you are using, but typically readln expects a text variable and you are passing an integer. If the point is to read in an ASCII code and then print out the character, you need to read in the text, convert it to an integer and …

Member Avatar for adotl
0
337

The End.