Subject Re: how to handle missing optional arguments in a function
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Thu, 1 Oct 2020 20:55:24 -0700
Newsgroups dbase.getting-started

On 10/1/2020 4:57 PM, Gaetano wrote:
> On 02/10/2020 06:40, Ken Mayer wrote:
>> Best idea is to put optional ones at the end.
>
> true, but in the example from errorMessage, one could want a specific
> font color but no specific background, it's not always possible to put
> the required ones first.
>
> Thanks for pointing to those Arg functions!

Another thing you can do is require that something be passed, such as
simply blank values for strings (""), and zero for numeric values (0) ...

Ken

--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm