Hi Ken,
An interesting thought! I've used it without parentheses for years and it's never bitten me on the bum - perhaps this is the first time :-) I'll start using the brackets.
John
John Weller 01380 723235 07976 393631
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Ken Dibble Sent: 13 October 2017 15:26 To: profoxtech@leafe.com Subject: Re: Odd Behaviour
ThisForm.pgfIncExp.ActivePage = This.Value ThisForm.Refresh
Probably already thought of but the proper syntax of the command is:
ThisForm.Refresh()
(ie, with parentheses)
Such code would run semi-reliably without the parens in VFP 6 but less so
in
later versions. I have had a few instances in which bad code generates
errors
under some circumstances but not others, in seemingly random fashion, owing most likely to the behavior of the compiler.
Ken Dibble www.stic-cil.org
[excessive quoting removed by server]