Alain Other Threads 1. Type needs finalization - not allowed in file type. Easy database file type that allows large number of fields per record. Board index » delphi » File type not allowed here Alai.
File type not allowed here. Re:File type not allowed here. Other Threads 1. One simple solution, for the case of String, is to redeclare the type as an array of characters. For other cases which require finalization, it becomes increasingly difficult to maintain a binary file structure with standard Pascal features, such as 'file of'.
From RAD Studio. Jump to: navigation , search. Hope I can get some answers because i spent quiet some time without any success. Thanks in advance!! When you are trying to write a file of record containing String types, it is not allowed by the compiler:.
String is one of those data types which need finalization, and as such they cannot be stored in a File type. It is no point writing a record with a String field using a binary file type anyway, since you will be writing the address instead of the text string is a reference type. When you are declaring strings with a dedicated length, they are called ShortString value type. ShortString is not supported by the mobile compilers though.
I suggest you use other techniques to store text. See how to convert a record to text with json for example. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 6 years ago. Active 1 year, 2 months ago. Viewed 2k times.
0コメント