Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field overlaping local variable - Bug or not ?
Message
From
05/06/2003 05:13:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Field overlaping local variable - Bug or not ?
Miscellaneous
Thread ID:
00796540
Message ID:
00796540
Views:
53
Dear all,

*VFP6 SP5

I was sure that this code block ...
        local ok
        ok = .t.
        if ok = .t.
          wait wind 'ok'
        else
          wait wind 'not ok'
        endif
... by all means must show 'ok' .

But if u have table or cursor containing
field: ok L(1)

open in yr current datasession like ...
        create cursor test ( ok L , bugid I )
        local ok
        ok = .t.
        if ok = .t.
          wait wind 'ok'
        else
          wait wind 'not ok'
        endif
... then is 'not ok' .

I would preffer 'illegal redefinition' error message,
rather then this where field value overlaps local variable without any warning ...

Am I wrong ?
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Next
Reply
Map
View

Click here to load this message in the networking platform