Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if a Property Exists
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00534933
Message ID:
00535277
Vues:
13
Nadya,

>BTW, may these lines cause troubles?
>
>IF pemstatus(thisform,'hasnavstand',5) and thisform.hasnavstand
>	thisform.navstand.navupdate()
>ENDIF
The problem happens if you make two or more calls to pemstatus() within the same line of code. It doesn't have to be inside an if:

if ( pemstatus() or pemstatus() )

llOk = pemstatus() and pemstatus()

both of those lines can sometimes cause internal object references that can't be cleared up with VFP code.

The above lines need to be recoded to separate statements:

llX = pemstatus()
llY = pemstatus()
if ( llX or llY )

llOk = pemstatus()
llOk = llOk and pemstatus()
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform