Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field overlaping local variable - Bug or not ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00796540
Message ID:
00796542
Vues:
15
Hi Srdjan,

Because VFP read as first field OK from cursor test before variable.
create cursor test ( ok L , bugid I )
local m.OK
m.ok=.T.
?ok
?test.ok
?m.ok
MartinJ

>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 ?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform