Sysfile inuts

2024-01-12
2024-01-14
  • Reinier Geers - 2024-01-12

    Normaly i used SysFileOpen(szFile:=sFileName , am:= AM_WRITE , pResult:= ADR(udi_ErrorCode) );
    buut in Version 19 i need : SysFileOpen(szFile:=sFileName , am:= Sysfile.AM_WRITE , pResult:= ADR(udi_ErrorCode) );
    Why ?

     
  • TimvH

    TimvH - 2024-01-14

    To prevent ambiguous use of this enumeration value.
    Let's say another ENUM is available in your project or in another library which has an enumeration value AM_WRITE, then it is not clear which AM_WRITE you want to assign. By this qualified access to the SysFile.AM_WRITE, it is completely clear for the compiler.

     

Log in to post a comment.