Re: Odd VFP DO WHILE Behavior



See HELP - topic NULL. And careful with using null anywhere.

Jack Jackson napsal(a):
I noticed the following odd behavior (in VFP9).

LOCAL xx
xx = .NULL.
DO WHILE xx
...
ENDDO

The loop code is not executed, which is what I would expect.

LOCAL xx
xx = .T.
DO WHILE xx
xx = .NULL.
ENDDO

The loop code is executed forever. Doesn't that seem wrong?
.



Relevant Pages

  • Re: Odd VFP DO WHILE Behavior
    ... Jack Jackson napsal: ... For these commands are the oldest commands of FoxBase/FoxPro and support for NULL is new, you can expect difficulties using NULL here. ... The loop code is not executed, which is what I would expect. ... The loop code is executed forever. ...
    (microsoft.public.fox.vfp.forms)
  • Re: Odd VFP DO WHILE Behavior
    ... The topic "Behavior of Null Values in Logical Expressions says nothing ... iteration, and iterations after the first should behave exactly like ... The loop code is not executed, which is what I would expect. ... The loop code is executed forever. ...
    (microsoft.public.fox.vfp.forms)
  • Odd VFP DO WHILE Behavior
    ... I noticed the following odd behavior (in VFP9). ... The loop code is not executed, which is what I would expect. ... The loop code is executed forever. ...
    (microsoft.public.fox.vfp.forms)

Loading