Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReadOnly Bug?
Message
De
24/03/2001 13:22:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
ReadOnly Bug?
Divers
Thread ID:
00488361
Message ID:
00488361
Vues:
28
Can anyone explain this bizarre behavior?

The following throws a syntax error:

FOR EACH loControl IN this.parent.Controls
IF loControl.ReadOnly

ENDIF
NEXT


So does this:

#DEFINE READONLY -1
FOR EACH loControl IN this.parent.Controls
IF loControl.ReadOnly

ENDIF
NEXT

But this works just fine:

LOCAL lcReadOnly
lcReadOnly = "ReadOnly"
FOR EACH loControl IN this.parent.Controls
IF loControl.&lcReadOnly

ENDIF
NEXT



Ray Roper
Ray Roper
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform