Einzelnen Beitrag anzeigen

Kas Ob.
Online

Registriert seit: 3. Sep 2023
346 Beiträge
 
#5

AW: schreiben von RECORD-Daten funktioniert. Das lesen von RECORD-Daten scheitert jed

  Alt 22. Okt 2023, 12:04
@Paul,
I think your problem is in your assumption about Pascal language and its types and expressions, most likely you are used to be a programmer in different language(s), and assuming Pascal will do the same, eg. Pascal is strongly typed and more strict than C(++).

In Pascal you can't switch any type into indexed one freely at your wish, you must declare an indexed type then use it as indexed one, though it is possible but highly not recommended, eg. casting is powerful but very dangerous and easily will allow you shoot your foot, pretty please don't try it before understand the difference.

So, take a break from coding and get familiar with arrays and records, and most importantly the managed and unmanaged types in Pascal/Delphi, you will save a lot of time, and at least your question will be right on point.
Kas
  Mit Zitat antworten Zitat