Hi,

The following no longer compiles in DataFlex 2022.

Code:
Use Windows.pkg

Struct tPoint
  Number nX
  Number nY
End_Struct

Struct tShape
  tPoint[] points
End_Struct
//

inkey current_Window
error:
- Error 4391: AppSrc\StructInDF2022.src (ln 9) Illegal code placement Could not refind the original name in struct(-sub) definition.


Changing the code into:

Code:
Use Windows.pkg

Struct tPoint
  Number nX
  Number nY
End_Struct

Struct tShape
  tPoint[] pointss
End_Struct
//

inkey current_Window
Makes it compile again.
Not ideal.

--
Wil