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:
00535283
Vues:
17
>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:
>
Ok, thanks. So, there is nothing wrong with this code, except that I don't want it at all :)

>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()
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform