<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p style="margin: 4pt 6.5pt 0pt 6pt; text-align: left; font-family:
Arial; font-size: 10.6667px; color: rgb(0, 0, 0); font-style:
normal; font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-style: initial; text-decoration-color: initial;"><font
style="font-family: "Courier New"; color: rgb(1, 1,
0); font-weight: bold;">5.0.14 readme</font></p>
<p style="margin: 4pt 6.5pt 0pt 6pt; text-align: left; font-family:
Arial; font-size: 10.6667px; color: rgb(0, 0, 0); font-style:
normal; font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-style: initial; text-decoration-color: initial;"><font
style="font-family: "Courier New"; color: rgb(1, 1,
0); font-weight: bold;"><br>
</font></p>
<p style="margin: 4pt 6.5pt 0pt 6pt; text-align: left; font-family:
Arial; font-size: 10.6667px; color: rgb(0, 0, 0); font-style:
normal; font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-style: initial; text-decoration-color: initial;"><font
style="font-family: "Courier New"; color: rgb(1, 1,
0); font-weight: bold;">Note:</font><font style="font-family:
"Courier New"; color: rgb(1, 1, 0);"><span> </span></font><font
style="color: rgb(1, 1, 0);">Although @ONCE in *report is
documented as being run prior to any output being done, it was
run while sitting on the last record read during the sort/select
process prior to release 5.0.14. Some people thought that this
meant that it was sitting on a selected record.</font></p>
<p style="margin: 4pt 6.5pt 0pt 6pt; text-align: left; font-family:
Arial; font-size: 10.6667px; color: rgb(0, 0, 0); font-style:
normal; font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-style: initial; text-decoration-color: initial;"><font
style="color: rgb(1, 1, 0);">@ONCE has now been fixed to be not
sitting on any record. However, some people depend on their
incorrect interpretation of the old behavior, so setting
PFOLDONCE=ON will "revert back" to a modified version of the old
behavior, where it will now be run while sitting on the last
record _selected_ during the sort/select process.</font></p>
<p style="margin: 4pt 6.5pt 0pt 6pt; text-align: left; font-family:
Arial; font-size: 10.6667px; color: rgb(0, 0, 0); font-style:
normal; font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-style: initial; text-decoration-color: initial;"><font
style="color: rgb(1, 1, 0);"><br>
</font></p>
<br>
<br>
<div class="moz-cite-prefix">On 7/31/2017 6:52 PM, Brian K. White
via Filepro-list wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d7e27148-c302-7908-5236-983c31a3cbc7@aljex.com">The
version is 5.0.13 and 5.0.14. And @once works in rclerk in
general, it just doesn't in this table.
<br>
<br>
The table in question has the odd property that it starts in
@menu, does a pushkey U which sends it into @update (don't ask me
why someone did it that way), and then the bulk of the table is
actually all in @update, and then it exits completely out of
rclerk while still in @update.
<br>
<br>
So, it would seem that despite the docs, @once comes after either
@menu or @update or both, and this table exits before getting to
the point where it would have run @once.
<br>
<br>
This destroys the easy rule I had been living by for years, that
you can and should use @once to initialize variables (as in, set
them to known explicit starting values, not declare them) and
rand("-1") etc, because in fact you can not depend on @once always
happening, or always happening before anything else. Instead the
rule is now only "usually", and you always need to examine the
code to ensure it will happen as you expect. This also means even
for a table where the rule is true as usual, at any time some
other programmer could make it not-true after the fact just by
inserting or changing @menu or @update without realizing it will
break something that depeds on @once.
<br>
<br>
</blockquote>
<br>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>