O$ - why not use #F
Mike Matthews - Omnis
omnis at lineal.co.uk
Tue Jul 26 11:53:35 UTC 2022
Yes it does, as they are ‘Global’ and not used for that window or instance. Change it once, and it changes everywhere. They have their uses of course, so use wisely.
Mike Matthews
Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://www.sqlworks.co/>
On 26 Jul 2022, at 12:38, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com<mailto:omnisdev-en at lists.omnis-dev.com>> wrote:
Thank you Phil and Rudolf.Does this phenomenon of unpredictability also apply to other global variables such as #1,#2, #L1, #L2 as used in a For loop: For #1 from 1 to #LN step 1 ?
Kind regards,Martin O.
Sent from Yahoo Mail on Android
On Tue, 26 Jul 2022 at 12:46, Phil (OmnisList)<phil at pgpotter.co.uk<mailto:phil at pgpotter.co.uk>> wrote: Martin,
Most developers will of moved away from relying on #F, mainly due to
things like timers, which may pop in and do something when you least
expect it, and maybe change the #F flag unexpectedly.
So using your own variable to hold any flag or status is a much safer
way to go.
--
regards
Phil Potter
Based in Chester in the UK.
On 26/07/2022 09:57, Martin Obongita via omnisdev-en wrote:
Hi Paul,
Sorry, I don't wish to be rude, but could I interject and ask why you use vbOK variable instead of using the inbuild #F variable to return the status of a flag?
Kind regards, Martin.
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list