Forum: Pascal and Delphi Jul 27th, 2009 |
| Replies: 3 Views: 629 Hey man, thanks for the info I'll look into that. At the moment the Synchronize function is the main cause of slow down in my application, but until I'm confident that what I'm doing is correct, it's... |
Forum: Pascal and Delphi Jul 8th, 2009 |
| Replies: 3 Views: 629 Found the answer myself. And it's yes, I do need to call Synchronize() or the program hangs at random points.
Sub Xero |
Forum: Pascal and Delphi Jul 6th, 2009 |
| Replies: 6 Views: 442 I like this line:
WriteLn('The balance is: ',balance:0:0);
Very neat.
Sub Xero |
Forum: Pascal and Delphi Jul 5th, 2009 |
| Replies: 5 Views: 637 It should be exactly the same. Format returns a string, so there's no difference in applying the result to an Editbox or a label.
What exactly is the problem?
Sub Xero |
Forum: Pascal and Delphi Jul 5th, 2009 |
| Replies: 5 Views: 637 Use the Format command like this:
VolumeCalc.Caption := Format('%.2f',[StrToFloat(EngineSizeVal.Text) / 2 / StrToFloat(CylNumVal.Text)]);
Sub Xero |
Forum: Pascal and Delphi Jul 5th, 2009 |
| Replies: 6 Views: 442 Your main problem is 'balance' should be a real type, as multiplying it by 1.03 will return a non integer value. Here's how I'd do it:
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils; |
Forum: Pascal and Delphi Jul 1st, 2009 |
| Replies: 3 Views: 629 Hello everyone,
I'm quite familiar with Delphi, but I'm new to using threads and so I've got a question. Here's what I'm trying to do:
I'm using the brilliant VirtualTreeView component and I wish... |