Home Invalid floating point operation Delphi
Reply: 0

Invalid floating point operation Delphi

user689
1#
user689 Published in May 24, 2018, 3:59 pm

I have a problem in a Delphi program that i'm writing. The problem is this piece of code:

type
  TRobot = class(TObject)
  private
  public
    fAcceso: Boolean;
    fOra: TTime;
    fCode: Integer;
    mex: string;
    constructor Create;
  end;

// ...

myrobot.mex:= ('Acceso: '+  BoolToStr(myrobot.fAcceso) + 
               ',Tempo:' +  TimeToStr(myrobot.fOra) + 
               ',Codice:' + IntToStr(myrobot.fCode));  
memo.Lines.add(myrobot.mex);

precisely with TimeToStr(myrobot.fOra).
The problem occurs is

"Invalid floating point operation".

Can someone help me??

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.316644 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO