• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

TTimer problem Cardinal vs Integer

I Have a TTimer component on a form and a field that the user types in the number of minutes delay required.  I wanted to have the line

Timer2.Interval := EDelay.Value * 1000;

but I get the error message 'Incompatible types: 'Cardinal' and 'Real'

How do I cast what as what to get the desired result?

TIA

John
0
jdthedj
Asked:
jdthedj
1 Solution
 
kfoster11CEOCommented:
What is EDalay.  It appears that EDalay.Value is a cardinal.  Try to use

Timer2.Interval := Trunc(EDelay.Timer) * 1000;
0
 
jdthedjAuthor Commented:
Thanks Kyle - that works fine!

John
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now