<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">This code works for me.<br>
<br>
<b>Public Sub Form_Open()</b><b><br>
</b><b><br>
</b><b> Dim $runtoday As Boolean = True</b><b><br>
</b><b><br>
</b><b> Args.Begin()</b><b><br>
</b><b> If Args.Has("t", "today", "Run plots for today") Then
$runtoday = True</b><b><br>
</b><b> Args.End</b><b><br>
</b><b><br>
</b><b> Print $runtoday</b><b><br>
</b><b><br>
</b><b>End</b><b><br>
</b><b><br>
</b>The result is <b>True</b> even if there is no <b>-t</b>,
tested with 'global' and local Boolean. This was done in the IDE.
<br>
<br>
Charlie<br>
<br>
On 13/02/2020 09:10, Bruce wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9e5ec734-ed7a-7e2d-4f2a-73750b32bee6@gmail.com">If
Args.Has("t", "today", "Run plots for today") Then $runtoday =
True
<br>
<br>
I have probably done something wrong here but if $runtoday has
already been set True then that line, if there is no "-t" on the
command line seems to set $runtoday false.
<br>
<br>
(Unless I have done something stupid somewhere else?)
<br>
<br>
Any clues? There doesn't seem to be a default value for "If
Args.Has" mentioned in the help docs.
<br>
<br>
tia
<br>
b
<br>
<br>
----[ <a class="moz-txt-link-freetext" href="http://gambaswiki.org/wiki/doc/netiquette">http://gambaswiki.org/wiki/doc/netiquette</a> ]----
<br>
</blockquote>
<br>
</body>
</html>