Optional parameter in VO/c#
Posted: Wed Oct 25, 2023 4:43 pm
Hi all,
I have this VO function :
When I try to call it from c# I have an error :
Decompiled code look like
Regards.
I have this VO function :
Code: Select all
METHOD ArticleListe( Groupe AS STRING, Famille AS STRING, Categorie AS STRING, Offset := 0 AS INT , Limit := -1 AS INT ) AS List<Article>
Code: Select all
_ws.ArticleListe(query.groupe, query.famille, query.categorie);
Error CS7036 There is no argument given that corresponds to the required parameter 'Offset' of 'ArticleListe(string, string, string, int, int)'
Code: Select all
public List<Article> ArticleListe(string Groupe, string Famille, string Categorie, [DefaultParameterValue(0, 0)] int Offset, [DefaultParameterValue(-1, 0)] int Limit)