Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: With Collections or FOR EACH...
Message
De
23/10/2003 06:28:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00841263
Message ID:
00841464
Vues:
28
Hi,
>
        FOR EACH loForm IN THIS.FormList
            IF UPPER(loForm.NAME) == tcName AND UPPER(loForm.BASECLASS) = 'FORM'
                llFound = .T.
                *!* BAM! As soon as the next line executes,
                *!* loForm is no longer an object!
                EXIT
            ENDIF
        ENDFOR
>

Am I missing something - I wouldn't expect loForm to be in scope outside of the FOR EACH - ENDFOR construct..

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform