Strong typed init, no compiler error on missing parameters?
Posted: Thu Dec 16, 2021 1:30 pm
Why does this not generate a compiler error in VO:
oFTP := FtpAX{cFtp, dwPoort, dwTimeout, cRemoteDir, cUser, cPW, TRUE, FALSE, FALSE, FALSE,(one parameter false missing)}
METHOD Init(cHost AS STRING, dwFTPport AS DWORD, dwFTPtimeout AS DWORD, cRDir AS STRING, cUser AS STRING, cPass AS STRING, lPassive AS LOGIC, lImplicitSSLTLS AS LOGIC, lSSL AS LOGIC, lTLS AS LOGIC, lQuiet AS LOGIC) AS OBJECT PASCAL CLASS FtpAX
The init is strong typed, declared in the class, but the missing parameter does not give a compiler error in VO.
Dick
oFTP := FtpAX{cFtp, dwPoort, dwTimeout, cRemoteDir, cUser, cPW, TRUE, FALSE, FALSE, FALSE,(one parameter false missing)}
METHOD Init(cHost AS STRING, dwFTPport AS DWORD, dwFTPtimeout AS DWORD, cRDir AS STRING, cUser AS STRING, cPass AS STRING, lPassive AS LOGIC, lImplicitSSLTLS AS LOGIC, lSSL AS LOGIC, lTLS AS LOGIC, lQuiet AS LOGIC) AS OBJECT PASCAL CLASS FtpAX
The init is strong typed, declared in the class, but the missing parameter does not give a compiler error in VO.
Dick