Fix64ToLongInt Frage

  • 1
  • 2
  • Page 1 of 2
TheBeginner
Schreiberling
Avatar
Gender: n/a
Location: Wunsiedel Bayern
Age: 66
Posts: 755
Registered: 06 / 2013
Subject:

Fix64ToLongInt Frage

 · 
Posted: 04.01.2022 - 19:05  ·  #1
Hallo,
eine kleine Frage an euch, ich habe eine 2te Unit und da habe ich das drin

LW:= Fix64ToLongInt(abs(tmp_fix));

Warum bekomme ich da einen Error identifier or factor expected

Muss ich in der zweiten unit noch was mit einbinden ?
In mein Hauptprogramm geht es ohne Fehler.


Gruß Frank
TheBeginner
Schreiberling
Avatar
Gender: n/a
Location: Wunsiedel Bayern
Age: 66
Posts: 755
Registered: 06 / 2013
Subject:

Re: Fix64ToLongInt Frage

 · 
Posted: 04.01.2022 - 21:50  ·  #2
Sorry das hätte ich noch mit schreiben sollen, es gibt eine 3te Unit mit alle Var´s

Units sind mit Uses eingebunden

Gruß Frank
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Fix64ToLongInt Frage

 · 
Posted: 04.01.2022 - 22:08  ·  #3
There is not enough information here Frank. If you send me your project I will be able to tell you.
TheBeginner
Schreiberling
Avatar
Gender: n/a
Location: Wunsiedel Bayern
Age: 66
Posts: 755
Registered: 06 / 2013
Subject:

Re: Fix64ToLongInt Frage

 · 
Posted: 04.01.2022 - 22:10  ·  #4
Thanks Merlin for your answer, I'll get everything ready for you tomorrow

Danke Merlin für deine Antwort, ich mache dir morgen alles fertig


Gruß Frank
TheBeginner
Schreiberling
Avatar
Gender: n/a
Location: Wunsiedel Bayern
Age: 66
Posts: 755
Registered: 06 / 2013
Subject:

Re: Fix64ToLongInt Frage

 · 
Posted: 05.01.2022 - 07:29  ·  #5
Guten morgen, das kann doch nicht sein ???
In meinen Hauptprogramm verwende ich uses für weitere units, aber ich muss uFix64
als erstes setzen ?


Good morning, this can't be ???
In my main program I use uses for other units, but I have to set uFix64
first ?



Ohne Fehler
Code

uses
  uFix64,            //<===============

  Merlin_Wz_Driver,
  Merlin_DHCP,
  Version,
    TransferStruct,
  RxTxHandling,
  uFAT16_32,  uFat1632,
  _unit_var,
  unit_send_an_Host;




Mit Fehler
Code

uses
   Merlin_Wz_Driver,
   Merlin_DHCP,
   Version,
  
   TransferStruct,
   RxTxHandling,

   uFAT16_32,  uFat1632,
   _unit_var,
   uFix64,                          //<==================
   unit_send_an_Host;



Gruß Frank
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: Fix64ToLongInt Frage

 · 
Posted: 05.01.2022 - 09:30  ·  #6
Quote by TheBeginner

LW:= Fix64ToLongInt(abs(tmp_fix));

Warum bekomme ich da einen Error identifier or factor expected

I am not sure that I understood online translation well, but maybe you need to use Fix64Abs() instead of Abs()?

Merlin, does Abs() have a special treatment of TFix (or fix64) type?
TheBeginner
Schreiberling
Avatar
Gender: n/a
Location: Wunsiedel Bayern
Age: 66
Posts: 755
Registered: 06 / 2013
Subject:

Re: Fix64ToLongInt Frage

 · 
Posted: 05.01.2022 - 09:40  ·  #7
Hello Avra, no that wasn't it, I had to enter uFix64 as the first one in Uses, I don't understand why either. Believe me, I've searched and searched and I don't understand it, it shouldn't matter how and when I first register a unit.


DE:::::::::::::
Hallo Avra, nein das war es nicht, ich musste bei Uses als erstes uFix64 angeben, warum verstehe ich auch nicht. Glaube mir ich habe gesucht und gesucht und ich verstehe es nicht, es sollte doch egal sein wie und wann zu erst ich eine Unit einschreibe.


Gruß Frank
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: Fix64ToLongInt Frage

 · 
Posted: 05.01.2022 - 09:49  ·  #8
Quote by TheBeginner

no that wasn't it, I had to enter uFix64 as the first one in Uses

Have you actually tested faulty compilation case with Fix64Abs() instead of Abs()?
  • 1
  • 2
  • Page 1 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   132   146 · Page-Gen-Time: 0.026741s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI