Forum: Pascal and Delphi Apr 7th, 2009 |
| Replies: 4 Views: 563 Before worrying about putting it all together, work on the parts of the program. For instance, you have identified the record to store your data, but how are you loading user input into the record... |
Forum: Pascal and Delphi Mar 18th, 2009 |
| Replies: 6 Views: 874 There are a number of conversion functions the sysutils.pas unit that can test this for you and check out extractstrings in the Classes unit for a basic parsing function. |
Forum: Pascal and Delphi Mar 15th, 2009 |
| Replies: 10 Views: 924 Now that you have a program that works, consider this: One goal for writing code is to avoid duplication. Note that you have the same code repeating for each case (H or T). You might want to look... |
Forum: Pascal and Delphi Mar 12th, 2009 |
| Replies: 6 Views: 3,306 FlamingClaw,
You could also use "absolute" to align the two variables in memory by declaring:
Var
S : string;
B : Array of Byte Absolute S;
This allows you to read and write to the... |
Forum: Pascal and Delphi Mar 11th, 2009 |
| Replies: 6 Views: 3,306 IS "formvar" part of Delphi or your own method? I could not find a reference for it and am not familiar with it. Either way, what is the declaration for the function? Have you looked at... |
Forum: Pascal and Delphi Mar 2nd, 2009 |
| Replies: 10 Views: 924 What is the purpose of the integers Head and tail? Are they needed? Look at how you are using them and follow the value of Flip1 using debug monitors. |
Forum: Pascal and Delphi Feb 27th, 2009 |
| Replies: 3 Views: 1,554 Take a look at Sysutils.pas. There a number of date/time methods that manage date operations. |
Forum: Pascal and Delphi Nov 20th, 2008 |
| Replies: 2 Views: 570 You might want to skip the while loop and try:
If listview2.findcaption (1,inttostr(randomnr)), false, true, true)=nil Then //no match found
ALso check the parameters to see if they are correct |
Forum: Pascal and Delphi Sep 8th, 2008 |
| Replies: 6 Views: 1,406 TP = Turbo Pascal Software |
Forum: Pascal and Delphi Aug 6th, 2008 |
| Replies: 7 Views: 1,119 I do not understand your last statement. The Caption is the label that appears on the button. The name is the code name used to refer to the button. They can be the same or differ as you choose. |
Forum: Pascal and Delphi Aug 6th, 2008 |
| Replies: 7 Views: 1,119 Have you placed the code from pritaeas in your MyButtonClick method? |
Forum: Pascal and Delphi Jun 5th, 2008 |
| Replies: 6 Views: 1,518 I am not familiar with Absolue Database. My first thought would be to try the same thing connecting to another database (BDE or ADO) and see if you still have the eror. How are you connecting... |
Forum: Pascal and Delphi Apr 14th, 2008 |
| Replies: 9 Views: 2,067 My bad, I meant Goto, but used your label name instead.
Can you show a sample of your text file lines? Are they in order? You are right, your array must be loaded and in order before you begin... |
Forum: Pascal and Delphi Apr 14th, 2008 |
| Replies: 9 Views: 2,067 1. Is your datafile arranged in and ordered sequewnce? The binary search begins generally as you have, finding the high , low and middle values. The student ID must be evaluated against the middle... |
Forum: Pascal and Delphi Apr 9th, 2008 |
| Replies: 2 Views: 1,332 There is not enough code shown to answer. How are you determining that r begins at 28? Can you show us the code for STekoop[1,r]? |