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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
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.