Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH object
Message
De
14/11/2019 15:54:47
 
 
À
14/11/2019 15:34:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01671871
Message ID:
01671880
Vues:
56
>But this also works:
>
>
with xyz.abc
>     SomeFunction()
>endwith
>
>func SomeFunction
>   .width=.width+3
>endwith
>
>Somewhat unexpectedly, though. IOW I found this out by accident :).

Wow. This also works:
WITH _screen
	somefunction()
ENDWITH

FUNCTION somefunction
? .width
? .height
somefunction2()

FUNCTION somefunction2
? .width
? .height
It also works if you define somefunction.prg and somefunction2.prg. Never knew that. Negates the idea that the WITH..ENDWITH is a compile-time facility. Clearly it's run-time.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform