I'm trying to understand when the compiler is complaining about a decalred optional parameter.
I have my function in a Xsharp project :
Code: Select all
METHOD LocCreation( cCodeClient AS STRING, cMotDePasse AS STRING, aArticleLoc AS List<ArticleLoc>, dtDebutLoc AS DATETIME, dtFinLoc AS DATETIME, dtDepart AS DATETIME, ;
dtRetour AS DATETIME, nForfaitLoc AS REAL8, nForfaitPresta AS REAL8, nForfaitPort AS REAL8, lResa AS LOGIC, cNumLoc AS STRING, cLivr1 := "" AS STRING , ;
cLivr2 := NULL AS STRING?, cCodePer1 := NULL AS STRING?, cCommentaire := NULL AS STRING?, cRefClt := NULL AS STRING?) AS LocStatut
Code: Select all
Error (active) CS7036 There is no argument given that corresponds to the required parameter 'cLivr1' of
'LocasystWebServices.LocCreation(string, string, List<ArticleLoc>, DateTime, DateTime, DateTime, DateTime, double, double, double, bool, string, string, string?, string?, string?, string?)' LocasystServices.asmx.cs 682