Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~702 People Reached
Favorite Forums
Favorite Tags

3 Posted Topics

Member Avatar for Sub Xero

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 to add to it from a thread. The tree is on the main form and is …

Member Avatar for Sub Xero
0
153
Member Avatar for revski

Use the Format command like this: [code] VolumeCalc.Caption := Format('%.2f',[StrToFloat(EngineSizeVal.Text) / 2 / StrToFloat(CylNumVal.Text)]); [/code] Sub Xero

Member Avatar for revski
0
354
Member Avatar for turbomen

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: [code=delphi] program Project1; {$APPTYPE CONSOLE} uses SysUtils; var posNeg: integer; balance: Real; // balance must be a real type (supports decimal places) begin try …

Member Avatar for FlamingClaw
0
195

The End.