Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field overlaping local variable - Bug or not ?
Message
De
05/06/2003 05:13:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Field overlaping local variable - Bug or not ?
Divers
Thread ID:
00796540
Message ID:
00796540
Vues:
54
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform