S: String[50]; 

I compile everything under Win32 / 64. When compiling for Android - error:

E2029 ';' expected but '[' found.

Are there other options to restrict the string to use in a typed file?

  • 2
    Do not use typed files, get away from this legacy of the turbopascals. There is XML, JSON, yes the same SQLite (not quite the format, but there too), quite get along on any platform. - kami

1 answer 1

String[50] not supported on mobile platforms.

You can certainly try using an array

 ... S: array [0..49] of Byte; ... 

Details can be found here . Also on docwiki.embarcadero.com it is well described how to migrate code to mobile platforms.